datatypes::timeseries::MultiTimeSeries¶
Template for time series with multiple values at time point; e.g. to hold multiple realizations of time series in an ensemble. More...
#include <time_series.hpp>
Public Types¶
Name | |
---|---|
typedef std::remove_pointer< TsType >::type | Type |
typedef std::add_pointer< Type >::type | PtrType |
typedef TsType | ItemType |
typedef Type::ElementType | ElementType |
Public Functions¶
Name | |
---|---|
MultiTimeSeries(const vector< ElementType * > & values, size_t length, const ptime & startDate, const TimeStep & timeStep) | |
MultiTimeSeries(const vector< vector< ElementType >> & values, const ptime & startDate, const TimeStep & timeStep) | |
MultiTimeSeries(ElementType **const values, size_t ensSize, size_t length, const ptime & startDate, const TimeStep & timeStep) | |
MultiTimeSeries(const vector< PtrType > & values, const ptime & startDate, const TimeStep & timeStep) | |
MultiTimeSeries(const Type & series) | |
MultiTimeSeries(const vector< Type > & values, const ptime & startDate, const TimeStep & timeStep) | |
MultiTimeSeries(std::function< Type(size_t)> & valueGen, size_t ensSize, const ptime & startDate, const TimeStep & timeStep) | |
MultiTimeSeries(const MultiTimeSeries< TsType > & src) | |
MultiTimeSeries(EnsembleStoragePolicy< TsType > * store) | |
MultiTimeSeries() | |
MultiTimeSeries< PtrType > * | AsPointerSeries() |
MultiTimeSeries< Type > | AsValueSeries() |
~MultiTimeSeries() | |
MultiTimeSeries & | operator=(const MultiTimeSeries & src) |
MultiTimeSeries & | operator=(MultiTimeSeries && src) |
void | ResetSeries(const size_t & numSeries, const size_t & lengthSeries, const ptime & startDate, const TimeStep & timeStep) |
TsType | Get(size_t i) |
Type | Get(size_t i) const |
ElementType | Get(size_t i, size_t tsIndex) |
void | Set(size_t i, size_t tsIndex, ElementType val) |
void | Set(size_t i, const Type & val) |
vector< ElementType * > * | GetValues() const |
void | CopyTo(ElementType ** dest) const |
size_t | Size() const |
size_t | GetLength(size_t i) const |
ptime | GetStartDate() const |
void | SetStartDate(const ptime & start) |
TimeStep | GetTimeStep() const |
void | Clear() |
Protected Functions¶
Name | |
---|---|
virtual void | InitializeStorage() |
virtual void | OperatorEqualImpl(const MultiTimeSeries< TsType > & src) |
Detailed Description¶
Template for time series with multiple values at time point; e.g. to hold multiple realizations of time series in an ensemble.
Template Parameters:
- TsType type of time series, typically a time series of double or float.
Public Types Documentation¶
typedef Type¶
typedef PtrType¶
typedef ItemType¶
typedef ElementType¶
Public Functions Documentation¶
function MultiTimeSeries¶
inline MultiTimeSeries(
const vector< ElementType * > & values,
size_t length,
const ptime & startDate,
const TimeStep & timeStep
)
function MultiTimeSeries¶
inline MultiTimeSeries(
const vector< vector< ElementType >> & values,
const ptime & startDate,
const TimeStep & timeStep
)
function MultiTimeSeries¶
inline MultiTimeSeries(
ElementType **const values,
size_t ensSize,
size_t length,
const ptime & startDate,
const TimeStep & timeStep
)
function MultiTimeSeries¶
inline MultiTimeSeries(
const vector< PtrType > & values,
const ptime & startDate,
const TimeStep & timeStep
)
function MultiTimeSeries¶
function MultiTimeSeries¶
inline MultiTimeSeries(
const vector< Type > & values,
const ptime & startDate,
const TimeStep & timeStep
)
function MultiTimeSeries¶
inline MultiTimeSeries(
std::function< Type(size_t)> & valueGen,
size_t ensSize,
const ptime & startDate,
const TimeStep & timeStep
)
function MultiTimeSeries¶
function MultiTimeSeries¶
function MultiTimeSeries¶
function AsPointerSeries¶
function AsValueSeries¶
function ~MultiTimeSeries¶
function operator=¶
function operator=¶
function ResetSeries¶
inline void ResetSeries(
const size_t & numSeries,
const size_t & lengthSeries,
const ptime & startDate,
const TimeStep & timeStep
)
function Get¶
function Get¶
function Get¶
function Set¶
function Set¶
function GetValues¶
function CopyTo¶
function Size¶
function GetLength¶
function GetStartDate¶
function SetStartDate¶
function GetTimeStep¶
function Clear¶
Protected Functions Documentation¶
function InitializeStorage¶
function OperatorEqualImpl¶
Updated on 2022-08-21 at 18:10:33 +1000