Falcon
Loading...
Searching...
No Matches

Public Member Functions

 RippleSource (double offset, double frequency, double sampling_rate, YAML::Node ripple_duration, double mean_amplitude, double noise_stdev, bool convert_byte_order, unsigned int nchannels)
std::string string () override
int64_t Produce (char **data) override
YAML::Node to_yaml () const override

Static Public Member Functions

static RippleSource * from_yaml (YAML::Node node)

Protected Attributes

double offset_
double frequency_
double sampling_rate_
uint64_t delta_
uint64_t timestamp_ = 0
YAML::Node ripple_params_
double mean_amplitude_
std::poisson_distribution< int > poisson_distribution_
std::default_random_engine generator_
double noise_stdev_
std::normal_distribution< double > distribution_
bool convert_byte_order_
std::vector< char > buffer_
unsigned int nchannels_
std::vector< params_by_channel_t > params
double omega_
Protected Attributes inherited from DataSource
nlx::NlxSignalRecord record_

Constructor & Destructor Documentation

◆ RippleSource()

RippleSource::RippleSource ( double offset,
double frequency,
double sampling_rate,
YAML::Node ripple_duration,
double mean_amplitude,
double noise_stdev,
bool convert_byte_order,
unsigned int nchannels )

Create the source and set the user options

Parameters
offsetpurely value added to the sample generated
mean_amplitudemean of the amplitude of the ripple
frequencyfrequency of the ripple should be contain between 150 and 250
ripple_durationYaml Node containing duration of a ripple and zero interval value in msecs. The key specify for which channel apply this set of parameters. If the key is *, apply it for all channel.
sampling_raterate of generating and sending samples
noise_stdevstandard deviation of the noise added to the signal
nchannelsnumber of channels simulated @params convert_byter_order

Member Function Documentation

◆ Produce()

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

Produce sample and timestamps for each channel to package and send in the network.

Signal produced = ripple signal separated by segment of zero amplitude signal

Implements DataSource.

◆ string()

std::string RippleSource::string ( )
overridevirtual

Implements DataSource.

◆ to_yaml()

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

Implements DataSource.


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