Falcon
Loading...
Searching...
No Matches

Public Member Functions

 SineSource (double offset=0.0, double amplitude=1.0, double frequency=1.0, double sampling_rate=1.0, double noise_stdev=0, unsigned int nchannels=128, bool convert_byte_order=true)
std::string string () override
int64_t Produce (char **data) override
YAML::Node to_yaml () const override

Static Public Member Functions

static SineSource * from_yaml (YAML::Node node)

Protected Attributes

double offset_
double amplitude_
double frequency_
double sampling_rate_
double noise_stdev_
uint64_t timestamp_ = 0
uint64_t delta_
double omega_
std::vector< char > buffer_
std::default_random_engine generator_
std::normal_distribution< double > distribution_
unsigned int nchannels_
bool convert_byte_order_
Protected Attributes inherited from DataSource
nlx::NlxSignalRecord record_

Member Function Documentation

◆ Produce()

int64_t SineSource::Produce ( char ** data)
overridevirtual

Implements DataSource.

◆ string()

std::string SineSource::string ( )
overridevirtual

Implements DataSource.

◆ to_yaml()

YAML::Node SineSource::to_yaml ( ) const
overridevirtual

Implements DataSource.


The documentation for this class was generated from the following files:
  • extensions/falcon-fklab-extensions/tools/nlxtestbench/sinesource.hpp
  • extensions/falcon-fklab-extensions/tools/nlxtestbench/sinesource.cpp