![]() |
Home | Libraries | People | FAQ | More |
boost::time_series::heaviside_unit_series — A Mutable_TimeSeries that has the unit value in the range [start,inf) and zero elsewhere.
// In header: <boost/time_series/heaviside_series.hpp> template<typename Value, typename Discretization, typename Offset> struct heaviside_unit_series : public boost::time_series::time_series_facade< Derived, Storage, Discretization > { // types typedef time_series_facade< heaviside_unit_series< Value, Discretization, Offset >, storage::heaviside_array< Value, Offset >, Discretization > base_type; // construct/copy/destruct heaviside_unit_series(); template<typename A1> heaviside_unit_series(A1 const &); template<typename A1, typename A2, ... > heaviside_unit_series(A1 const &, A2 const &, ...); };
A Mutable_TimeSeries that has the unit value in the range [start,inf) and zero elsewhere.
The named parameters for the constructor are, in order:
start, 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)