|
Classes |
| struct | goertzel_descriptor_t |
| struct | goertzel_state_t |
Defines |
|
#define | _SPANDSP_TONE_DETECT_H_ |
|
#define | goertzel_preadjust_amp(amp) ((float) amp) |
Functions |
|
void | make_goertzel_descriptor (goertzel_descriptor_t *t, float freq, int samples) |
| | Create a descriptor for use with either a Goertzel transform.
|
| goertzel_state_t * | goertzel_init (goertzel_state_t *s, goertzel_descriptor_t *t) |
| | Initialise the state of a Goertzel transform.
|
| void | goertzel_reset (goertzel_state_t *s) |
| | Reset the state of a Goertzel transform.
|
| int | goertzel_update (goertzel_state_t *s, const int16_t amp[], int samples) |
| | Update the state of a Goertzel transform.
|
| float | goertzel_result (goertzel_state_t *s) |
| | Evaluate the final result of a Goertzel transform.
|
| int | periodogram_generate_coeffs (complexf_t coeffs[], float freq, int sample_rate, int window_len) |
| float | periodogram_generate_phase_offset (complexf_t *offset, float freq, int sample_rate, int interval) |
| complexf_t | periodogram (const complexf_t coeffs[], const complexf_t amp[], int len) |
| int | periodogram_prepare (complexf_t sum[], complexf_t diff[], const complexf_t amp[], int len) |
| complexf_t | periodogram_apply (const complexf_t coeffs[], const complexf_t sum[], const complexf_t diff[], int len) |
| float | periodogram_freq_error (const complexf_t *phase_offset, float scale, const complexf_t *last_result, const complexf_t *result) |