SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Private Attributes | List of all members
smile::CSpectrumAnalyzerHunter Class Reference

Spectrum analysis based on Hunter's DFT method. More...

#include <orbitan.h>

Inheritance diagram for smile::CSpectrumAnalyzerHunter:
Inheritance graph
[legend]
Collaboration diagram for smile::CSpectrumAnalyzerHunter:
Collaboration graph
[legend]

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 vectordtimeSeries
 reference to the source array of x(t)
 
const double timeStep
 spacing between elements of the array (used to scale the frequencies)
 

Detailed Description

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

Member Function Documentation

void smile::CSpectrumAnalyzerHunter::findSpectralLines ( CSpectrum spectralLines,
vectord spectrumAmplitudes = NULL 
)
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).

Parameters
[out]spectralLinesarray (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.


The documentation for this class was generated from the following files: