rusEFI
The most advanced open source ECU
|
Typedefs | |
typedef float | real_type |
typedef std::complex< real_type > | complex_type |
Functions | |
bool | fft_adc_sample (float *w, float ratio, float sensitivity, const adcsample_t *data_in, complex_type *data_out, const size_t size) |
bool | fft_adc_sample_filtered (Biquad &knockFilter, float *w, float ratio, float sensitivity, const adcsample_t *data_in, complex_type *data_out, const size_t size) |
bool | fft (const real_type *data_in, complex_type *data_out, const size_t size) |
void | rectwin (float *w, unsigned n) |
void | hann (float *w, unsigned n, bool sflag) |
void | hamming (float *w, unsigned n, bool sflag) |
void | blackman (float *w, unsigned n, bool sflag) |
void | blackmanharris (float *w, unsigned n, bool sflag) |
float | fast_sqrt (float x) |
float | amplitude (const complex_type &fft) |
bool | isPow (const size_t num) |
void | rerrange (complex_type *data, const size_t num_elements) |
bool | transform (complex_type *data, const size_t count) |
static bool | ffti (complex_type *data, const size_t size) |
void | cosine_window (float *w, unsigned n, const float *coeff, unsigned ncoeff, bool sflag) |
typedef std::complex<real_type> fft::complex_type |
typedef float fft::real_type |
float fft::amplitude | ( | const complex_type & | fft | ) |
Definition at line 133 of file fft.hpp.
Referenced by processLastKnockEvent().
Definition at line 188 of file fft.hpp.
Referenced by initSoftwareKnock().
Definition at line 137 of file fft.hpp.
Referenced by blackman(), blackmanharris(), hamming(), and hann().
Definition at line 119 of file fft.hpp.
Referenced by amplitude().
bool fft::fft | ( | const real_type * | data_in, |
complex_type * | data_out, | ||
const size_t | size | ||
) |
Definition at line 109 of file fft.hpp.
bool fft::fft_adc_sample | ( | float * | w, |
float | ratio, | ||
float | sensitivity, | ||
const adcsample_t * | data_in, | ||
complex_type * | data_out, | ||
const size_t | size | ||
) |
Definition at line 88 of file fft.hpp.
Referenced by processLastKnockEvent().
bool fft::fft_adc_sample_filtered | ( | Biquad & | knockFilter, |
float * | w, | ||
float | ratio, | ||
float | sensitivity, | ||
const adcsample_t * | data_in, | ||
complex_type * | data_out, | ||
const size_t | size | ||
) |
Definition at line 98 of file fft.hpp.
Referenced by processLastKnockEvent().
|
static |
Definition at line 77 of file fft.hpp.
Referenced by fft(), fft_adc_sample(), and fft_adc_sample_filtered().
void fft::rectwin | ( | float * | w, |
unsigned | n | ||
) |
void fft::rerrange | ( | complex_type * | data, |
const size_t | num_elements | ||
) |
Definition at line 15 of file fft.hpp.
Referenced by ffti().
bool fft::transform | ( | complex_type * | data, |
const size_t | count | ||
) |
Definition at line 41 of file fft.hpp.
Referenced by ffti().