6 #ifndef COMBINEDSIGNAL_HPP_INCLUDE
7 #define COMBINEDSIGNAL_HPP_INCLUDE
23 CombinedSignal(std::function<
double(
const std::vector<double> &)>);
27 virtual double sample(
const std::vector<double> &values);
Used by PlatformIO to define a signal as a function of other signals.
Definition: CombinedSignal.hpp:20
virtual double sample(const std::vector< double > &values)
Sample all required signals and aggregate values to produce the combined signal.
Definition: CombinedSignal.cpp:29
virtual ~CombinedSignal()=default
CombinedSignal()
Definition: CombinedSignal.cpp:17
std::function< double(const std::vector< double > &)> m_agg_function
Definition: CombinedSignal.hpp:28