![]() |
Home | Libraries | People | FAQ | More |
boost::time_series::characteristic_unit_series — A Mutable_TimeSeries that has the unit value within some [start,stop) range, and zero elsewhere.
// In header: <boost/time_series/characteristic_series.hpp> template<typename Value, typename Discretization, typename Offset> struct characteristic_unit_series : public boost::time_series::time_series_facade< Derived, Storage, Discretization > { // types typedef time_series_facade< characteristic_unit_series< Value, Discretization, Offset >, storage::characteristic_array< Value, Offset >, Discretization > base_type; // construct/copy/destruct characteristic_unit_series(); template<typename A1> characteristic_unit_series(A1 const &); template<typename A1, typename A2, ... > characteristic_unit_series(A1 const &, A2 const &, ...); };
A Mutable_TimeSeries that has the unit value within some [start,stop) range, and zero elsewhere.
The named parameters for the constructor are, in order:
start, with a default of Offset(0)
stop, with a default of Offset(0)
value, with a default of Value(1)
discretization, with a default of Discretization(1)
zero, with a default of Value(0)