class FSpectrum Frequency spectrum class.
| | FSpectrum (void) Default constructor. |
| | FSpectrum (const FSpectrum& fs) Copy constructor. |
| | FSpectrum (const FSeries& fs) Data constructor. |
| | FSpectrum (double F0, double dF, const Time& t0, const Interval& dT, size_type nWord, data_type* data) Data constructor. |
| | ~FSpectrum (void) FSpectrum Destructor. |
| | copy (const FSpectrum& fs) Copy an FSpectrum. |
| | extract (double f0, double dF) const Get a substring of the FSpectrum. |
| | getStartTime (void) const Get the start time. |
| | getEndTime (void) const Get the End time. |
| | getLowFreq (void) const Get the minimum frequency. |
| | getHighFreq (void) const Get the maximum Frequency. |
| | getFStep (void) const Get the frequency step. |
| | getName (void) const Get the spectrum name. |
| | getNStep (void) const Get the number of frequency steps. |
| | getData (size_type len, data_type* data) const Get the spectrum data. |
| | getSum (float f0, float dF) const Get spectral sum. |
| | getCount (void) const Get the number of spectra averaged. |
| | refData (void) const Get a pointer to the spectrum data. |
| | refDVect (void) const Get the data vector pointer |
| | Dump (std::ostream& out) const Dump the contents of the FSpectrum to an output stream. |
| | appName (const char* name) Append a string to the spectrum name. |
| | clear (double F0=0, double dF=0, Time t0=Time(0), Interval dT=0.0) Clear the spectrum. |
| | setT0 (const Time& t0) Set the start time. |
| | setName (const char* name) Set the spectrum name. |
| | setCount (size_type Count) Set the spectrum count. |
| | setData (size_type len, const data_type* data) Overwrite the spectrum with float data. |
| | setData (const FSeries& data) Replace spectrum with an FSeries squared. |
| | operator = (const FSpectrum& rhs) Copy a spectrum. |
| | operator += (const FSpectrum& rhs) Add two spectra. |
| | operator -= (const FSpectrum& rhs) Subtract a spectrum. |
| | operator *= (double scale) Scale a spectrum. |
| | operator) (double freq) const Get the amplitude at a specified frequency |
| | isEmpty (void) const Test for empty. |
| | getBin (double f) const Calculate the closest bin to a given frequency |
| | getBinF (size_type bin) const Calculate the frequency of a given bin |
| | refDVect () Get the data vector pointer |
The frequency spectrum class is used to represent a power spectrum. Although the spectrum data iscontained in a DVector, only float type data are allowed.
FSpectrum(const FSpectrum& fs)
FSpectrum(const FSeries& fs)
FSpectrum(double F0, double dF, const Time& t0, const Interval& dT, size_type nWord, data_type* data)
dF - Frequency step.
t0 - Start time.
dT - Time interval.
nWord - Number of data words.
data - Spectral densities.
~FSpectrum(void)
FSpectrum& copy(const FSpectrum& fs)
FSpectrum extract(double f0, double dF) const
dF - Frequency interval (in Hz).
Time getStartTime(void) const
Time getEndTime(void) const
double getLowFreq(void) const
double getHighFreq(void) const
double getFStep(void) const
const char* getName(void) const
size_type getNStep(void) const
size_type getData(size_type len, data_type* data) const
double getSum(float f0, float dF) const
dF - frequency interval width.
size_type getCount(void) const
const data_type* refData(void) const
const DVector* refDVect(void) const
std::ostream& Dump(std::ostream& out) const
void appName(const char* name)
void clear(double F0=0, double dF=0, Time t0=Time(0), Interval dT=0.0)
dF - New frequency step
t0 - New start time
dT - New time interval
void setT0(const Time& t0)
void setName(const char* name)
void setCount(size_type Count)
void setData(size_type len, const data_type* data)
void setData(const FSeries& data)
FSpectrum& operator =(const FSpectrum& rhs)
FSpectrum& operator +=(const FSpectrum& rhs)
FSpectrum& operator -=(const FSpectrum& rhs)
FSpectrum& operator *=(double scale)
double operator)(double freq) const
bool isEmpty(void) const
size_type getBin(double f) const
double getBinF(size_type bin) const
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++