6 #ifndef DERIVATIVESIGNAL_HPP_INCLUDE
7 #define DERIVATIVESIGNAL_HPP_INCLUDE
20 std::shared_ptr<Signal> y_sig,
21 int read_loops,
double sleep_time);
23 std::shared_ptr<Signal> y_sig,
24 int read_loops,
double sleep_time,
30 double sample(
void)
override;
31 double read(
void)
const override;
42 double time,
double signal,
45 std::shared_ptr<Signal> m_time_sig;
46 std::shared_ptr<Signal> m_y_sig;
48 const int M_NUM_SAMPLE_HISTORY;
50 int m_derivative_num_fit;
51 bool m_is_batch_ready;
Definition: DerivativeSignal.hpp:17
double sample(void) override
Apply any conversions necessary to interpret the latest stored value as a double.
Definition: DerivativeSignal.cpp:97
double read(void) const override
Read directly the value of the signal without affecting any pushed batch signals.
Definition: DerivativeSignal.cpp:115
DerivativeSignal & operator=(const DerivativeSignal &other)=delete
virtual ~DerivativeSignal()=default
DerivativeSignal(const DerivativeSignal &other)=delete
DerivativeSignal(std::shared_ptr< Signal > time_sig, std::shared_ptr< Signal > y_sig, int read_loops, double sleep_time)
Definition: DerivativeSignal.cpp:17
void setup_batch(void) override
Prepare the signal for being updated through side effects by the owner's read_batch step....
Definition: DerivativeSignal.cpp:45
Definition: Signal.hpp:16