|
dg_tools
|
Upsamples the input data by holding the last value for a number of timesteps. More...
#include <upsampler.hpp>


Public Attributes | |
| dg::SignalPtr< dg::Vector, int > | data_inputSIN |
| dg::SignalTimeDependent< dg::Vector, int > | data_outSOUT |
Static Public Attributes | |
| static const std::string | CLASS_NAME |
Private Attributes | |
| bool | is_initialized_ |
| int | upsampling_factor_ |
| int | first_time_ |
| dg::Vector | last_input_ |
Upsamples the input data by holding the last value for a number of timesteps.
Pulls the input signal only when the time signal is a multiplicative of the sampling factor.