Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template characteristic_unit_series

boost::time_series::characteristic_unit_series — A Mutable_TimeSeries that has the unit value within some [start,stop) range, and zero elsewhere.

Synopsis

// 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 &, ...);
};

Description

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:

  1. start, with a default of Offset(0)

  2. stop, with a default of Offset(0)

  3. value, with a default of Value(1)

  4. discretization, with a default of Discretization(1)

  5. zero, with a default of Value(0)

characteristic_unit_series public construct/copy/destruct

  1. characteristic_unit_series();
  2. template<typename A1> characteristic_unit_series(A1 const & a1);
  3. template<typename A1, typename A2, ... > 
      characteristic_unit_series(A1 const & a1, A2 const & a2, ...);

PrevUpHomeNext