namespace generator class SineData : public DataSource

SineData is a sinusoid data generator

Inheritance:


Public Methods

SineData(void)
Default constructor
SineData(double Amp, double Freq, double Phi=0.0)
Parameter constructor
~SineData(void)
SineData Destructor
SineData* clone(void) const
Make an exact copy of a SineData constructor
const char* getDataType(void) const
Return a constant string with the data source type name ("Sine")

Inherited from DataSource:

Public Classes

enum RepMode
kContinuous
Continuous data source
kSingle
Generate a single event
kRate
Generate events with poisson statistics
kFixed
Generate events at fixed intervals
class SrcEvent
SrcEvent(void)
Default SrcEvent constructor
SrcEvent(const std::string& name, const std::string& comment, const Time& t0, Interval before, Interval after, const ParamMap& map)
SrcEvent data constructor
const char* getComment(void) const
Get the comment field
const char* getInputs(void) const
Get the input data
const char* getName(void) const
Get the data source name
const Time& getGPSMax(void) const
Get the GPS time of the maximum value
Interval getTimeBefore(void) const
Get the duration of the generated waveform before the maximum time
Interval getTimeAfter(void) const
Get the duration of the generated waveform after the maximum time
double getAmplitude(void) const
Get the waveform amplitude
const ParamList& getParamList(void) const
Get a list of the generated parameters

Public Methods

static DataSource* parse(const std::string& desc)
virtual std::ostream& dump(std::ostream& out) const
bool isContinuous(void) const
void generate(const Time& t0, Interval dt)
int getDebug(void) const
virtual Interval getDuration(void) const
Time getLatest(void) const
const char* getName(void) const
virtual double getNumeric(const std::string& name) const
virtual const char* getParameter(const std::string& name) const
double getRate(void) const
Interval getSample(void) const
virtual Interval getStartOffset(void) const
Time getStartTime(void) const
Time getTrigTime(void) const
TSeries getTimeSeries(const Time& t0, Interval dT) const
const TSeries& getTimeSeries(void) const
virtual std::string getSourceName(void) const
virtual void randomize(void)
void release(const Time& t0)
void setDebug(int lvl)
void setName(const std::string& name)
virtual void setParameter(const std::string& name, const std::string& val)
virtual void setParameter(const std::string& name, double value)
void setSample(Interval dT)
void setTriggerRate(double rate)
void setTriggerTime(const Time& t0)
bool getWriteFlag(void) const
bool getSaveFlag(void) const
void setWriteFlag(bool yorn=true)
void setSaveFlag(bool yorn=true)
unsigned long getNEvent(void) const
const SrcEvent& refEvent(void) const
const SrcEvent& refEvent(unsigned long i) const
void eraseEvent(unsigned long N)

Documentation

SineData is a sinusoid data generator. The generated waveform is:
          x(t)  = A * sin(2*pi*F*(t-to) + Phi)
       
where the generator Parameters are:
A - Amplitude
F - Sinusoid frequency (in Hz)
Phi 0 Phase at t=to (in degrees)
SineData(void)
Default constructor

SineData(double Amp, double Freq, double Phi=0.0)
Parameter constructor
Parameters:
Amp - Sinusoid amplitude.
Freq - Sinusoid frequency in Hz.
Phi - Sinusoid phase at t=to.

~SineData(void)
SineData Destructor

SineData* clone(void) const
Make an exact copy of a SineData constructor
Returns:
Pointer to copied object.

const char* getDataType(void) const
Return a constant string with the data source type name ("Sine")
Returns:
constant pointer to the character string "Sine".


This class has no child classes.
Author:
John Zweizig
Version:
1.1; last modified February 23, 2004

alphabetic index hierarchy of classes


generated by doc++