void GEP::Core::Float::TimeSeries::NormalTimeSeries::ReadFileAndAddToAlphabet ( Alphabet  variablesSet,
ref int  variablesSetStartIndex,
string  filePath,
int[]  variableDisplayIndexs,
string  variableName,
int[]  lookBehinds,
int  frequency 
) [inline]

Reads a time series from a file and adds the result to an Alphabet of Variables.

Parameters:
variablesSet The set where variables will be added.
variablesSetStartIndex The starting index of added variables.
filePath The path to the file with the time series.
variableDisplayIndexs The displayed indexes following the name of variables.
variableName Name of the variables.
lookBehinds The maximum number of periods to look before the current time.
frequency The number of times every look behind will be copied to the resulting array.

Every time series has a time frame/period. This is the distance in time between different records in the series.

The loaded and added time series / variables depend on frequency and lookBehinds .

Consider the following series 1, 2, 3, 4, ...,

lookBehinds = {0, 1, 2, 3},

frequency = 2.

We start reading the series from 8 (This value is set in the time series file or as a member variable in classes inheriting this interface).

We read 4 records long series, which is also defined in the inheritors of this interface.

/

The corresponding cases of added variables will be:

{

{8, 9, 10, 11},

{8, 9, 10, 11},

{7, 8, 9, 10},

{7, 8, 9, 10},

{6, 7, 8, 9},

{6, 7, 8, 9},

{5, 6, 7, 8},

{5, 6, 7, 8}

}.

Implements GEP::Core::Float::TimeSeries::ITimeSeries.

Definition at line 300 of file NormalTimeSeries.cs.

GEP .NET Framwork Main Page
SourceForge.net Logo