Skip to content

datatypes::timeseries::TimeSeriesOperations

More...

#include <time_series.hpp>

Public Types

Name
using typename Tts::ElementType ElementType
using typename CommonTypes< ElementType >::SeriesType SeriesType
using typename CommonTypes< ElementType >::PtrSeriesType PtrSeriesType
using typename CommonTypes< ElementType >::EnsembleType EnsembleType
using typename CommonTypes< ElementType >::EnsemblePtrType EnsemblePtrType
using typename CommonTypes< ElementType >::PtrEnsemblePtrType PtrEnsemblePtrType
using typename CommonTypes< ElementType >::TSeriesEnsemblePtrType TSeriesEnsemblePtrType
using typename CommonTypes< ElementType >::PtrTSeriesEnsemblePtrType PtrTSeriesEnsemblePtrType

Public Functions

Name
PtrSeriesType TrimTimeSeries(const SeriesType & timeSeries, const ptime & startDate, const ptime & endDate)
PtrSeriesType Resample(const SeriesType & timeSeries, const string & method)
PtrSeriesType DailyToHourly(const SeriesType & dailyTimeSeries)
PtrSeriesType JoinTimeSeries(const SeriesType & head, const SeriesType & tail)
SeriesType AggregateTimeStep(const SeriesType & series, const string & argument)
SeriesType DisaggregateTimeStep(const SeriesType & series, const string & argument)
void AggregateTimeStep(SeriesType & series, const string & argument)
void DisaggregateTimeStep(SeriesType & series, const string & argument)
void TransformEachItem(TSeriesEnsemblePtrType & efts, const string & method, const string & methodArgument)
ptime GetStart(const TSeriesEnsemblePtrType & ensTs, size_t index =0)
ptime GetEnd(const TSeriesEnsemblePtrType & ensTs, size_t index =0)
void CreateForecast(TSeriesEnsemblePtrType & forecast, const SeriesType & observations, const ptime & start, size_t length, const TimeStep & issueTimeStep, size_t leadTime, size_t offsetForecasts)
TSeriesEnsemblePtrType * CreateForecastPtr(const SeriesType & observations, const ptime & start, size_t length, const TimeStep & issueTimeStep, size_t leadTime, size_t offsetForecasts)
TSeriesEnsemblePtrType CreateForecast(const SeriesType & observations, const ptime & start, size_t length, const TimeStep & issueTimeStep, size_t leadTime, size_t offsetForecasts)
template <typename U >
bool
AreEqual(const SeriesType & a, const U & b, bool strict =false, double tolerance =1e-12)
bool AreTimeSeriesEqual(const SeriesType & a, const SeriesType & b, bool strict =false, double tolerance =1e-12)
bool AreTimeSeriesEqual(const SeriesType & a, const SeriesType & b, const ptime & from, const ptime & to, bool strict =false, double tolerance =1e-12)
bool AreValueEqual(const SeriesType & a, const vector< ElementType > & b, size_t from =0, size_t to =std::numeric_limits< size_t >::max(), bool strict =false, double tolerance =1e-12)
bool AreEnsembleTimeSeriesEqual(EnsemblePtrType & a, EnsemblePtrType & b)
bool AreEnsembleTimeSeriesEqual(EnsembleType & a, EnsembleType & b)
bool AreTimeSeriesEnsembleTimeSeriesEqual(TSeriesEnsemblePtrType & a, TSeriesEnsemblePtrType & b)
template <typename T =typename Tts::ElementType>
PtrSeriesType
MaskTimeSeries(const SeriesType & timeSeries, const ptime & start, const ptime & end, T maskValue)

Detailed Description

template <typename Tts  =TimeSeries>
class datatypes::timeseries::TimeSeriesOperations;

Public Types Documentation

using ElementType

using datatypes::timeseries::TimeSeriesOperations< Tts >::ElementType =  typename Tts::ElementType;

using SeriesType

using datatypes::timeseries::TimeSeriesOperations< Tts >::SeriesType =  typename CommonTypes<ElementType>::SeriesType;

using PtrSeriesType

using datatypes::timeseries::TimeSeriesOperations< Tts >::PtrSeriesType =  typename CommonTypes<ElementType>::PtrSeriesType;

using EnsembleType

using datatypes::timeseries::TimeSeriesOperations< Tts >::EnsembleType =  typename CommonTypes<ElementType>::EnsembleType;

using EnsemblePtrType

using datatypes::timeseries::TimeSeriesOperations< Tts >::EnsemblePtrType =  typename CommonTypes<ElementType>::EnsemblePtrType;

using PtrEnsemblePtrType

using datatypes::timeseries::TimeSeriesOperations< Tts >::PtrEnsemblePtrType =  typename CommonTypes<ElementType>::PtrEnsemblePtrType;

using TSeriesEnsemblePtrType

using datatypes::timeseries::TimeSeriesOperations< Tts >::TSeriesEnsemblePtrType =  typename CommonTypes<ElementType>::TSeriesEnsemblePtrType;

using PtrTSeriesEnsemblePtrType

using datatypes::timeseries::TimeSeriesOperations< Tts >::PtrTSeriesEnsemblePtrType =  typename CommonTypes<ElementType>::PtrTSeriesEnsemblePtrType;

Public Functions Documentation

function TrimTimeSeries

static inline PtrSeriesType TrimTimeSeries(
    const SeriesType & timeSeries,
    const ptime & startDate,
    const ptime & endDate
)

function Resample

static inline PtrSeriesType Resample(
    const SeriesType & timeSeries,
    const string & method
)

function DailyToHourly

static inline PtrSeriesType DailyToHourly(
    const SeriesType & dailyTimeSeries
)

function JoinTimeSeries

static inline PtrSeriesType JoinTimeSeries(
    const SeriesType & head,
    const SeriesType & tail
)

function AggregateTimeStep

static inline SeriesType AggregateTimeStep(
    const SeriesType & series,
    const string & argument
)

function DisaggregateTimeStep

static inline SeriesType DisaggregateTimeStep(
    const SeriesType & series,
    const string & argument
)

function AggregateTimeStep

static inline void AggregateTimeStep(
    SeriesType & series,
    const string & argument
)

function DisaggregateTimeStep

static inline void DisaggregateTimeStep(
    SeriesType & series,
    const string & argument
)

function TransformEachItem

static inline void TransformEachItem(
    TSeriesEnsemblePtrType & efts,
    const string & method,
    const string & methodArgument
)

function GetStart

static inline ptime GetStart(
    const TSeriesEnsemblePtrType & ensTs,
    size_t index =0
)

function GetEnd

static inline ptime GetEnd(
    const TSeriesEnsemblePtrType & ensTs,
    size_t index =0
)

function CreateForecast

static inline void CreateForecast(
    TSeriesEnsemblePtrType & forecast,
    const SeriesType & observations,
    const ptime & start,
    size_t length,
    const TimeStep & issueTimeStep,
    size_t leadTime,
    size_t offsetForecasts
)

function CreateForecastPtr

static inline TSeriesEnsemblePtrType * CreateForecastPtr(
    const SeriesType & observations,
    const ptime & start,
    size_t length,
    const TimeStep & issueTimeStep,
    size_t leadTime,
    size_t offsetForecasts
)

function CreateForecast

static inline TSeriesEnsemblePtrType CreateForecast(
    const SeriesType & observations,
    const ptime & start,
    size_t length,
    const TimeStep & issueTimeStep,
    size_t leadTime,
    size_t offsetForecasts
)

function AreEqual

template <typename U >
static inline bool AreEqual(
    const SeriesType & a,
    const U & b,
    bool strict =false,
    double tolerance =1e-12
)

function AreTimeSeriesEqual

static inline bool AreTimeSeriesEqual(
    const SeriesType & a,
    const SeriesType & b,
    bool strict =false,
    double tolerance =1e-12
)

function AreTimeSeriesEqual

static inline bool AreTimeSeriesEqual(
    const SeriesType & a,
    const SeriesType & b,
    const ptime & from,
    const ptime & to,
    bool strict =false,
    double tolerance =1e-12
)

function AreValueEqual

static inline bool AreValueEqual(
    const SeriesType & a,
    const vector< ElementType > & b,
    size_t from =0,
    size_t to =std::numeric_limits< size_t >::max(),
    bool strict =false,
    double tolerance =1e-12
)

function AreEnsembleTimeSeriesEqual

static inline bool AreEnsembleTimeSeriesEqual(
    EnsemblePtrType & a,
    EnsemblePtrType & b
)

function AreEnsembleTimeSeriesEqual

static inline bool AreEnsembleTimeSeriesEqual(
    EnsembleType & a,
    EnsembleType & b
)

function AreTimeSeriesEnsembleTimeSeriesEqual

static inline bool AreTimeSeriesEnsembleTimeSeriesEqual(
    TSeriesEnsemblePtrType & a,
    TSeriesEnsemblePtrType & b
)

function MaskTimeSeries

template <typename T  =typename Tts::ElementType>
static inline PtrSeriesType MaskTimeSeries(
    const SeriesType & timeSeries,
    const ptime & start,
    const ptime & end,
    T maskValue
)

Updated on 2022-08-21 at 18:10:33 +1000