namespace generator class WhiteNoise : public DataSource

Gaussian noise data source.

Inheritance:


Public Methods

WhiteNoise(double Amp=1.0)
Gaussian noise data source constructor
~WhiteNoise(void)
Gaussian noise data source destructor
WhiteNoise* clone(void) const
Clone a gaussian noise data source
const char* getDataType(void) const
Return the type of this data source

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

The WhiteNoise class is a DMT generator data source that produces continuous random white gaussian distributed noise. The only parameter is the amplitude A, which specifies the standard deviation of the noise. If A is not specified it is assigned a value of 1.0.

WhiteNoise(double Amp=1.0)
Gaussian noise data source constructor
Parameters:
Amp - Noise amplitude.

~WhiteNoise(void)
Gaussian noise data source destructor

WhiteNoise* clone(void) const
Clone a gaussian noise data source
Returns:
Pointer to an identical cop of the current object.

const char* getDataType(void) const
Return the type of this data source
Returns:
Pointer to a constant string containing "WhiteNoise"


This class has no child classes.
Author:
John Zweizig
Version:
1.1; Last modified: April 21, 2004

alphabetic index hierarchy of classes


generated by doc++