1.3.49
 
Loading...
Searching...
No Matches
Timeseries

Timeseries-related functions. More...

Functions

void helios::Context::addTimeseriesData (const char *label, float value, const Date &date, const Time &time)
 Add a data point to timeseries of data.
 
void helios::Context::setCurrentTimeseriesPoint (const char *label, uint index)
 Set the Context date and time by providing the index of a timeseries data point.
 
float helios::Context::queryTimeseriesData (const char *label, const Date &date, const Time &time) const
 Get a timeseries data point by specifying a date and time vector.
 
float helios::Context::queryTimeseriesData (const char *label) const
 Get a timeseries data point at the time currently set in the Context.
 
float helios::Context::queryTimeseriesData (const char *label, uint index) const
 Get a timeseries data point by index in the timeseries.
 
Time helios::Context::queryTimeseriesTime (const char *label, uint index) const
 Get the time associated with a timeseries data point.
 
Date helios::Context::queryTimeseriesDate (const char *label, uint index) const
 Get the date associated with a timeseries data point.
 
uint helios::Context::getTimeseriesLength (const char *label) const
 Get the length of timeseries data.
 
bool helios::Context::doesTimeseriesVariableExist (const char *label) const
 Query whether a timeseries variable exists.
 

Detailed Description

Timeseries-related functions.

Function Documentation

◆ addTimeseriesData()

void Context::addTimeseriesData ( const char *  label,
float  value,
const Date date,
const Time time 
)

Add a data point to timeseries of data.

Parameters
[in]labelName of timeseries variable (e.g., temperature)
[in]valueValue of timeseries data point
[in]dateDate vector corresponding to the time of ‘value’ (see Date)
[in]timeTime vector corresponding to the time of ‘value’ (see Time)

Definition at line 574 of file Context.cpp.

◆ doesTimeseriesVariableExist()

bool Context::doesTimeseriesVariableExist ( const char *  label) const

Query whether a timeseries variable exists.

Parameters
[in]labelName of timeseries variable (e.g., temperature)

Definition at line 759 of file Context.cpp.

◆ getTimeseriesLength()

uint Context::getTimeseriesLength ( const char *  label) const

Get the length of timeseries data.

Parameters
[in]labelName of timeseries variable (e.g., temperature)

Definition at line 748 of file Context.cpp.

◆ queryTimeseriesData() [1/3]

float Context::queryTimeseriesData ( const char *  label) const

Get a timeseries data point at the time currently set in the Context.

Parameters
[in]labelName of timeseries variable (e.g., temperature)
Returns
Value of timeseries data point

Definition at line 686 of file Context.cpp.

◆ queryTimeseriesData() [2/3]

float Context::queryTimeseriesData ( const char *  label,
const Date date,
const Time time 
) const

Get a timeseries data point by specifying a date and time vector.

This method interpolates the timeseries data to provide a value at exactly ‘date’ and ‘time’. Thus, ‘date’ and ‘time’ must be between the first and last timeseries values.

Parameters
[in]labelName of timeseries variable (e.g., temperature)
[in]dateDate vector corresponding to the time of ‘value’ (see Date)
[in]timeTime vector corresponding to the time of ‘value’ (see Time)
Returns
Value of timeseries data point

Definition at line 638 of file Context.cpp.

◆ queryTimeseriesData() [3/3]

float Context::queryTimeseriesData ( const char *  label,
uint  index 
) const

Get a timeseries data point by index in the timeseries.

This method returns timeseries data by index, and is typically used when looping over all data in the timeseries. See getTimeseriesLength() to get the total length of the timeseries data.

Parameters
[in]labelName of timeseries variable (e.g., temperature)
[in]indexIndex of timeseries data point. The index starts at 0 for the earliest data point, and moves chronologically in time.
Returns
Value of timeseries data point

Definition at line 690 of file Context.cpp.

◆ queryTimeseriesDate()

Date Context::queryTimeseriesDate ( const char *  label,
uint  index 
) const

Get the date associated with a timeseries data point.

Parameters
[in]labelName of timeseries variable (e.g., temperature)
[in]indexIndex of timeseries data point. The index starts at 0 for the earliest data point, and moves chronologically in time.
Returns
Date of timeseries data point

Definition at line 732 of file Context.cpp.

◆ queryTimeseriesTime()

Time Context::queryTimeseriesTime ( const char *  label,
uint  index 
) const

Get the time associated with a timeseries data point.

Parameters
[in]labelName of timeseries variable (e.g., temperature)
[in]indexIndex of timeseries data point. The index starts at 0 for the earliest data point, and moves chronologically in time.
Returns
Time of timeseries data point

Definition at line 698 of file Context.cpp.

◆ setCurrentTimeseriesPoint()

void Context::setCurrentTimeseriesPoint ( const char *  label,
uint  index 
)

Set the Context date and time by providing the index of a timeseries data point.

Parameters
[in]labelName of timeseries variable (e.g., temperature)
[in]indexIndex of timeseries data point. The index starts at 0 for the earliest data point, and moves chronologically in time.

Definition at line 630 of file Context.cpp.