Data creator: sine wave data. More...
Public Member Functions | |
SineWaveCreator (std::string name, float new_period, float new_amplitude) | |
Constructor: assigns data set name and noise parameters. More... | |
virtual InputData_t | create (size_t size) override |
Creates and returns the data sample. More... | |
Public Member Functions inherited from DataCreatorBase | |
DataCreatorBase (std::string new_name) | |
Constructor: just assigns a name to this data set. More... | |
std::string | name () const |
Returns the name of this set. More... | |
virtual | ~DataCreatorBase () |
Virtual destructor. More... | |
Public Attributes | |
float | period |
period of the wave [ticks] More... | |
float | amplitude |
amplitude of the wave [ADC counts] More... | |
Additional Inherited Members | |
Public Types inherited from DataCreatorBase | |
typedef std::vector< short > | InputData_t |
Static Public Attributes inherited from DataCreatorBase | |
static std::default_random_engine | random_engine |
Random engine shared by all the data creators. More... | |
Data creator: sine wave data.
Definition at line 143 of file raw_test.cc.
|
inline |
Constructor: assigns data set name and noise parameters.
Definition at line 150 of file raw_test.cc.
|
inlineoverridevirtual |
Creates and returns the data sample.
Implements DataCreatorBase.
Definition at line 156 of file raw_test.cc.
float SineWaveCreator::amplitude |
amplitude of the wave [ADC counts]
Definition at line 146 of file raw_test.cc.
float SineWaveCreator::period |
period of the wave [ticks]
Definition at line 145 of file raw_test.cc.