FFT Class Reference

FFT analysis. More...

#include <orsa_fft.h>

Inheritance diagram for FFT:

Inheritance graph
[legend]
Collaboration diagram for FFT:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FFT (OrbitStream &, FFTPowerSpectrum &, std::vector< Peak > &, FFTDataStream &)
void Search (FFTSearch, FFTAlgorithm=algo_FFT)
void Search (FFTSearchAmplitude, FFTSearchPhase, FFTAlgorithm=algo_FFT)

Public Attributes

std::vector< int > candidate_bin
 frequency range parameters
double relative_amplitude
bool HiResSpectrum
gsl_d1_minimization_parameters par
gsl_function F
gsl_min_fminimizer * s
const gsl_min_fminimizer_type * T
FFTDataStream data_stream
unsigned int nfreq

Protected Attributes

std::vector< double > psd
FFTPowerSpectrumfps
std::vector< Peak > * peaks
OrbitStreamos
FFTDataStreamreconstructed_data_stream

Detailed Description

FFT analysis.

Definition at line 110 of file orsa_fft.h.


Constructor & Destructor Documentation

FFT OrbitStream ,
FFTPowerSpectrum ,
std::vector< Peak > &  ,
FFTDataStream
 

Definition at line 542 of file orsa_fft.cc.

References FFT::fps, FFT::HiResSpectrum, FFT::nfreq, FFT::os, FFT::peaks, FFT::psd, FFT::reconstructed_data_stream, FFT::relative_amplitude, FFT::s, and FFT::T.

00542                                                                                        {
00543     
00544     os = &o;
00545     //
00546     fps = &psd;
00547     fps->resize(0);
00548     //
00549     reconstructed_data_stream = &rds;
00550     
00551     peaks = &pks;
00552     peaks->resize(0);
00553     
00554     default_peak_reset_frequency = 1.0e-100;
00555     default_peak_reset_amplitude = 1.0e-4;
00556     default_peak_reset_phase     = 0.0;
00557     
00558     HiResSpectrum = false;
00559     
00560     relative_amplitude = 0.05;
00561     //
00562     // freq_start = 0.0;
00563     // freq_stop  = 100.0;
00564     
00565     // gsl stuff
00566     T = gsl_min_fminimizer_goldensection;  
00567     s = gsl_min_fminimizer_alloc (T);
00568     
00569     // defaults
00570     // search_type = HK;
00571     // window_type = NONE;
00572     // algorithm_type = FourierTransformPeaks;
00573     
00574     nfreq = 4;
00575     
00576   }


Member Function Documentation

void Search FFTSearchAmplitude  ,
FFTSearchPhase  ,
FFTAlgorithm  = algo_FFT
 

Definition at line 808 of file orsa_fft.cc.

References orsa::algo_FFT, orsa::algo_FFTB, orsa::algo_FMFT1, orsa::algo_FMFT2, and orsa::algo_MFT.

00808                                                                               {
00809     
00810     FillDataStream(sa,sp);
00811     
00812     if (algo==algo_FFT) {
00813       Search_FFT();
00814     } else if (algo==algo_FFTB) {
00815       Search_FFTB();
00816     } else if (algo==algo_MFT) {
00817       Search_MFT();
00818     } else if (algo==algo_FMFT1) {
00819       Search_FMFT1();
00820     } else if (algo==algo_FMFT2) {
00821       Search_FMFT2();
00822     }
00823     
00824     ComputeCommonPowerSpectrum();
00825     ComputeCommonReconstructedSignal();
00826     
00827   }

void Search FFTSearch  ,
FFTAlgorithm  = algo_FFT
 

Definition at line 787 of file orsa_fft.cc.

References orsa::algo_FFT, orsa::algo_FFTB, orsa::algo_FMFT1, orsa::algo_FMFT2, and orsa::algo_MFT.

00787                                                   {
00788     
00789     FillDataStream(se);
00790     
00791     if (algo==algo_FFT) {
00792       Search_FFT();
00793     } else if (algo==algo_FFTB) {
00794       Search_FFTB();
00795     } else if (algo==algo_MFT) {
00796       Search_MFT();
00797     } else if (algo==algo_FMFT1) {
00798       Search_FMFT1();
00799     } else if (algo==algo_FMFT2) {
00800       Search_FMFT2();
00801     }
00802     
00803     ComputeCommonPowerSpectrum();
00804     ComputeCommonReconstructedSignal();
00805     
00806   }


Member Data Documentation

std::vector<int> candidate_bin
 

frequency range parameters

Definition at line 132 of file orsa_fft.h.

FFTDataStream data_stream
 

Definition at line 167 of file orsa_fft.h.

gsl_function F
 

Definition at line 153 of file orsa_fft.h.

FFTPowerSpectrum* fps [protected]
 

Definition at line 159 of file orsa_fft.h.

Referenced by FFT::FFT().

bool HiResSpectrum
 

Definition at line 143 of file orsa_fft.h.

Referenced by FFT::FFT().

unsigned int nfreq
 

Definition at line 170 of file orsa_fft.h.

Referenced by FFT::FFT().

OrbitStream* os [protected]
 

Definition at line 162 of file orsa_fft.h.

Referenced by FFT::FFT().

gsl_d1_minimization_parameters par
 

Definition at line 152 of file orsa_fft.h.

std::vector<Peak>* peaks [protected]
 

Definition at line 161 of file orsa_fft.h.

Referenced by FFT::FFT().

std::vector<double> psd [protected]
 

Definition at line 158 of file orsa_fft.h.

Referenced by FFT::FFT().

FFTDataStream* reconstructed_data_stream [protected]
 

Definition at line 164 of file orsa_fft.h.

Referenced by FFT::FFT().

double relative_amplitude
 

Definition at line 135 of file orsa_fft.h.

Referenced by FFT::FFT().

gsl_min_fminimizer* s
 

Definition at line 154 of file orsa_fft.h.

Referenced by FFT::FFT().

const gsl_min_fminimizer_type* T
 

Definition at line 155 of file orsa_fft.h.

Referenced by FFT::FFT().


The documentation for this class was generated from the following files:
Generated on Tue Jan 11 15:28:12 2005 for liborsa by  doxygen 1.4.0