datatypes::timeseries::TimeSeriesOperations¶
#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¶
Public Types Documentation¶
using 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¶
function DailyToHourly¶
function JoinTimeSeries¶
function AggregateTimeStep¶
function DisaggregateTimeStep¶
function AggregateTimeStep¶
function DisaggregateTimeStep¶
function TransformEachItem¶
static inline void TransformEachItem(
TSeriesEnsemblePtrType & efts,
const string & method,
const string & methodArgument
)
function GetStart¶
function GetEnd¶
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¶
function AreEnsembleTimeSeriesEqual¶
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