29 std::vector<double>
abs(std::vector<fftw_complex> vals);
36 std::vector<double>
abs2(std::vector<fftw_complex> vals);
43 std::vector<double>
arg(std::vector<fftw_complex> vals);
50 std::vector<double>
argd(std::vector<fftw_complex> vals);
59 void polar(std::vector<fftw_complex> vals, std::vector<double> *mag, std::vector<double> *phase);
68 void polard(std::vector<fftw_complex> vals, std::vector<double> *mag, std::vector<double> *phase);
77 void bode(std::vector<fftw_complex> vals, std::vector<double> *mag, std::vector<double> *phase);
86 void boded(std::vector<fftw_complex> vals, std::vector<double> *mag, std::vector<double> *phase);
94 std::vector<double>
frequency(
size_t size,
double fmax = 0.5);
102 std::vector<fftw_complex>
fft(std::vector<double> vals);
110 std::vector<double>
psd(std::vector<double> vals);
A namespace providing wrappers for FFTW library.
Definition: spectra.h:18
std::vector< double > arg(std::vector< fftw_complex > vals)
Compute the phase in radiants.
constexpr int IMAG
Position of the imag part in fftw_complex type.
Definition: spectra.h:22
constexpr int REAL
Position of the real part in fftw_complex type.
Definition: spectra.h:21
void boded(std::vector< fftw_complex > vals, std::vector< double > *mag, std::vector< double > *phase)
Compute the bode coordinates.
void polard(std::vector< fftw_complex > vals, std::vector< double > *mag, std::vector< double > *phase)
Compute the polar coordinates.
void bode(std::vector< fftw_complex > vals, std::vector< double > *mag, std::vector< double > *phase)
Compute the bode coordinates.
std::vector< double > argd(std::vector< fftw_complex > vals)
Compute the phase in degrees.
std::vector< double > psd(std::vector< double > vals)
Compute the power-spectra-density.
std::vector< double > abs2(std::vector< fftw_complex > vals)
Compute the magnitute squared.
void polar(std::vector< fftw_complex > vals, std::vector< double > *mag, std::vector< double > *phase)
Compute the polar coordinates.
std::vector< fftw_complex > fft(std::vector< double > vals)
Compute the spectra.
std::vector< double > frequency(size_t size, double fmax=0.5)
Compute the frequency vector.
std::vector< double > abs(std::vector< fftw_complex > vals)
Compute the magnitute.