|
Falcon
|
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_ |
| 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
| offset | purely value added to the sample generated |
| mean_amplitude | mean of the amplitude of the ripple |
| frequency | frequency of the ripple should be contain between 150 and 250 |
| ripple_duration | Yaml 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_rate | rate of generating and sending samples |
| noise_stdev | standard deviation of the noise added to the signal |
| nchannels | number of channels simulated @params convert_byter_order |
|
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.
|
overridevirtual |
Implements DataSource.
|
overridevirtual |
Implements DataSource.