Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
FftTest Class Reference
FFT test. More...
#include <FftTest.h>
Public Member Functions | |
| FftTest () | |
| Constructor. | |
| ~FftTest () | |
| Destructor. | |
| void | apply_window (float in_data[], float out_data[]) |
| Apply window fucntion. | |
| void | calc_fft (float in_data[], float out_re_data[], float out_im_data[]) |
| Calculate FFT. | |
| void | calc_power (float re_data[], float im_data[], float pow_data[], int32_t dat_len) |
| Calculate Power spectrum. | |
| void | calc_amplitude (float pow_data[], float amp_data[], int32_t dat_len) |
| Calculate Amplitude spectrum. | |
| void | norm_amplitude (float amp_data[], int32_t dat_len) |
| Normalize Amplitude spectrum. | |
Detailed Description
FFT test.
Definition at line 23 of file FftTest.h.
Constructor & Destructor Documentation
| FftTest | ( | ) |
Constructor.
Definition at line 12 of file FftTest.cpp.
| ~FftTest | ( | ) |
Destructor.
Definition at line 19 of file FftTest.cpp.
Member Function Documentation
| void apply_window | ( | float | in_data[], |
| float | out_data[] | ||
| ) |
Apply window fucntion.
- Parameters:
-
in_data[] Input data out_data[] Output data
Definition at line 27 of file FftTest.cpp.
| void calc_amplitude | ( | float | pow_data[], |
| float | amp_data[], | ||
| int32_t | len | ||
| ) |
Calculate Amplitude spectrum.
- Parameters:
-
pow_data[] Input power data amp_data[] Output amplitude data len Data length
Definition at line 101 of file FftTest.cpp.
| void calc_fft | ( | float | in_data[], |
| float | out_re_data[], | ||
| float | out_im_data[] | ||
| ) |
Calculate FFT.
- Parameters:
-
in_data Input data out_re_data Output real data out_im_data Output imaginary data
Definition at line 40 of file FftTest.cpp.
| void calc_power | ( | float | re_data[], |
| float | im_data[], | ||
| float | pow_data[], | ||
| int32_t | len | ||
| ) |
Calculate Power spectrum.
- Parameters:
-
re_data[] Input real data im_data[] Input imaginary data pow_data[] Power data len Data length
Definition at line 87 of file FftTest.cpp.
| void norm_amplitude | ( | float | amp_data[], |
| int32_t | len | ||
| ) |
Normalize Amplitude spectrum.
- Parameters:
-
pow_data[] Input power data amp_data[] Output amplitude data len Data length
Definition at line 115 of file FftTest.cpp.
Generated on Wed Jul 13 2022 17:36:59 by
1.7.2