GCBM
Public Member Functions | Private Attributes | List of all members
TimeSeries2 Class Reference

#include <timeseries.h>

Collaboration diagram for TimeSeries2:
Collaboration graph

Public Member Functions

 TimeSeries2 ()
 
 TimeSeries2 (DateTime start, const std::vector< boost::optional< double >> &data, Frequency frequency=Frequency::Monthly, ExtrapType extraptype=ExtrapType::NearestYr, InterpType interpType=InterpType::ColAverage)
 
 TimeSeries2 (const std::vector< Observation > &observations, ExtrapType extraptype=ExtrapType::NearestYr, InterpType interpType=InterpType::Linear)
 
void setData (DateTime start, const std::vector< boost::optional< double >> &data, Frequency frequency=Frequency::Monthly)
 
void setObservations (const std::vector< Observation > &observations)
 
void addObservation (Observation observation)
 
double multiplier () const
 
void setMultiplier (double multiplier)
 
std::vector< Observationobservations () const
 
std::vector< double > series (DateTime start, DateTime end) const
 
double value () const
 
ExtrapType extrapType () const
 
void setExtrapType (ExtrapType extraptype)
 
InterpType interpType () const
 
void setInterpType (InterpType interpType)
 
Frequency frequency () const
 

Private Attributes

InterpType _interpType
 
ExtrapType _extraptype
 
Frequency _frequency
 
DateTime _start
 
double _multiplier
 
std::vector< boost::optional< double > > _series
 
std::vector< Observation_observations
 

Constructor & Destructor Documentation

◆ TimeSeries2() [1/3]

◆ TimeSeries2() [2/3]

TimeSeries2 ( DateTime  start,
const std::vector< boost::optional< double >> &  data,
Frequency  frequency = Frequency::Monthly,
ExtrapType  extraptype = ExtrapType::NearestYr,
InterpType  interpType = InterpType::ColAverage 
)

◆ TimeSeries2() [3/3]

TimeSeries2 ( const std::vector< Observation > &  observations,
ExtrapType  extraptype = ExtrapType::NearestYr,
InterpType  interpType = InterpType::Linear 
)
explicit

Member Function Documentation

◆ addObservation()

void addObservation ( Observation  observation)

◆ extrapType()

ExtrapType extrapType ( ) const

◆ frequency()

Frequency frequency ( ) const

◆ interpType()

InterpType interpType ( ) const

◆ multiplier()

double multiplier ( ) const

◆ observations()

std::vector< Observation > observations ( ) const

◆ series()

std::vector< double > series ( DateTime  start,
DateTime  end 
) const

◆ setData()

void setData ( DateTime  start,
const std::vector< boost::optional< double >> &  data,
Frequency  frequency = Frequency::Monthly 
)

◆ setExtrapType()

void setExtrapType ( ExtrapType  extraptype)

◆ setInterpType()

void setInterpType ( InterpType  interpType)

◆ setMultiplier()

void setMultiplier ( double  multiplier)

◆ setObservations()

void setObservations ( const std::vector< Observation > &  observations)

◆ value()

double value ( ) const

Member Data Documentation

◆ _extraptype

ExtrapType _extraptype
private

◆ _frequency

Frequency _frequency
private

◆ _interpType

InterpType _interpType
private

◆ _multiplier

double _multiplier
private

◆ _observations

std::vector<Observation> _observations
private

◆ _series

std::vector<boost::optional<double> > _series
private

◆ _start

DateTime _start
private

The documentation for this class was generated from the following file: