autocorr_cccf

Variants: autocorr_cccf, autocorr_rrrf

Computes auto-correlation with a fixed lag on input signals

Public Functions

autocorr_cccf autocorr_cccf_create(unsigned int _window_size, unsigned int _delay)
int autocorr_cccf_destroy(autocorr_cccf _q)
int autocorr_cccf_reset(autocorr_cccf _q)
int autocorr_cccf_print(autocorr_cccf _q)
int autocorr_cccf_push(autocorr_cccf _q, float complex _x)
int autocorr_cccf_write(autocorr_cccf _q, float complex * _x, unsigned int _n)
int autocorr_cccf_execute(autocorr_cccf _q, float complex * _rxx)
int autocorr_cccf_execute_block(autocorr_cccf _q, float complex * _x, unsigned int _n, float complex * _rxx)
float autocorr_cccf_get_energy(autocorr_cccf _q)

Interfaces

autocorr_cccf autocorr_cccf_create(unsigned int _window_size, unsigned int _delay)

Create auto-correlator object with a particular window length and delay

  • _window_size : size of the correlator window
  • _delay : correlator delay [samples]

int autocorr_cccf_destroy(autocorr_cccf _q)

Destroy auto-correlator object, freeing internal memory

int autocorr_cccf_reset(autocorr_cccf _q)

Reset auto-correlator object's internals

int autocorr_cccf_print(autocorr_cccf _q)

Print auto-correlator parameters to stdout

int autocorr_cccf_push(autocorr_cccf _q, float complex _x)

Push sample into auto-correlator object

  • _q : auto-correlator object
  • _x : single input sample

int autocorr_cccf_write(autocorr_cccf _q, float complex * _x, unsigned int _n)

Write block of samples to auto-correlator object

  • _q : auto-correlation object
  • _x : input array, shape: (_n, 1)
  • _n : number of input samples

int autocorr_cccf_execute(autocorr_cccf _q, float complex * _rxx)

Compute single auto-correlation output

  • _q : auto-correlator object
  • _rxx : auto-correlated output

int autocorr_cccf_execute_block(autocorr_cccf _q, float complex * _x, unsigned int _n, float complex * _rxx)

Compute auto-correlation on block of samples; the input and output arrays may have the same pointer

  • _q : auto-correlation object
  • _x : input array, shape: (_n, 1)
  • _n : number of input, output samples
  • _rxx : input array, shape: (_n, 1)

float autocorr_cccf_get_energy(autocorr_cccf _q)

return sum of squares of buffered samples