autocorr_rrrf

Computes auto-correlation with a fixed lag on input signals

Variants: autocorr_cccf, autocorr_rrrf

Public Functions

autocorr_rrrf autocorr_rrrf_create(unsigned int _window_size, unsigned int _delay)
int autocorr_rrrf_destroy(autocorr_rrrf _q)
int autocorr_rrrf_reset(autocorr_rrrf _q)
int autocorr_rrrf_print(autocorr_rrrf _q)
int autocorr_rrrf_push(autocorr_rrrf _q, float _x)
int autocorr_rrrf_write(autocorr_rrrf _q, float * _x, unsigned int _n)
int autocorr_rrrf_execute(autocorr_rrrf _q, float * _rxx)
int autocorr_rrrf_execute_block(autocorr_rrrf _q, float * _x, unsigned int _n, float * _rxx)
float autocorr_rrrf_get_energy(autocorr_rrrf _q)

Interfaces

autocorr_rrrf autocorr_rrrf_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_rrrf_destroy(autocorr_rrrf _q)

Destroy auto-correlator object, freeing internal memory

int autocorr_rrrf_reset(autocorr_rrrf _q)

Reset auto-correlator object's internals

int autocorr_rrrf_print(autocorr_rrrf _q)

Print auto-correlator parameters to stdout

int autocorr_rrrf_push(autocorr_rrrf _q, float _x)

Push sample into auto-correlator object

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

int autocorr_rrrf_write(autocorr_rrrf _q, float * _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_rrrf_execute(autocorr_rrrf _q, float * _rxx)

Compute single auto-correlation output

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

int autocorr_rrrf_execute_block(autocorr_rrrf _q, float * _x, unsigned int _n, float * _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_rrrf_get_energy(autocorr_rrrf _q)

return sum of squares of buffered samples