autocorr_rrrf
Variants: autocorr_cccf, autocorr_rrrf
Computes auto-correlation with a fixed lag on input signals
Public Functions
autocorr_rrrf | autocorr_rrrf_create( |
int | autocorr_rrrf_destroy( |
int | autocorr_rrrf_reset( |
int | autocorr_rrrf_print( |
int | autocorr_rrrf_push( |
int | autocorr_rrrf_write( |
int | autocorr_rrrf_execute( |
int | autocorr_rrrf_execute_block( |
float | autocorr_rrrf_get_energy( |
Interfaces
autocorr_rrrf autocorr_rrrf_create(
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(
Destroy auto-correlator object, freeing internal memory
int autocorr_rrrf_reset(
Reset auto-correlator object's internals
int autocorr_rrrf_print(
Print auto-correlator parameters to stdout
int autocorr_rrrf_push(
Push sample into auto-correlator object
- _q : auto-correlator object
- _x : single input sample
int autocorr_rrrf_write(
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(
Compute single auto-correlation output
- _q : auto-correlator object
- _rxx : auto-correlated output
int autocorr_rrrf_execute_block(
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(
return sum of squares of buffered samples