SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
Spectrum analysis based on Hunter's DFT method. More...
#include <orbitan.h>
Public Member Functions | |
CSpectrumAnalyzerHunter (const vectord &_timeSeries, const double _timeStep) | |
Constructor takes the one-dimensional array of equally spaced x(t), and the timestep. | |
virtual void | findSpectralLines (CSpectrum *spectralLines, vectord *spectrumAmplitudes=NULL) |
Frequency analysis routine: perform Fourier transform and find up to Nmax lines in the spectrum. More... | |
Private Attributes | |
const vectord & | timeSeries |
reference to the source array of x(t) | |
const double | timeStep |
spacing between elements of the array (used to scale the frequencies) | |
Spectrum analysis based on Hunter's DFT method.
It determines the location of spectral lines with a high accuracy, using Hanning filtering; the backup method of Carpintero&Aguilar without filtering is used in case of a poorly resolved line
|
virtual |
Frequency analysis routine: perform Fourier transform and find up to Nmax lines in the spectrum.
input is provided by the constructor in derived classes (it may consist of one-dimensional real array of x(t) for the Hunter's method, or a complex array of { x(t),v(t) } for the Laskar's method).
[out] | spectralLines | array (must be a pointer to an existing vector); |
[out] | spectrumAmplitudes | (absolute values of complex spectrum) if the pointer to this vector is not NULL |
Implements smile::CBasicSpectrumAnalyzer.