MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.db.temporal.RawValueSet Class Reference

The RawValueData class is used to hold the data values for an ItemID. More...

Public Member Functions

 RawValueSet (int nSrcID, int nItemID)
 The constructor. More...
 
void Add (RawValue val)
 Add a raw value to the set. More...
 
Tuple< float[], float[]> GetStaticValues ()
 Return the static values. More...
 
Tuple< float[], float[], DateTime[]> GetObservedValues (int nIdx, int nCount)
 Returns the observed values. More...
 
Tuple< float[], DateTime[]> GetObservedNumValues (int nIdx, int nCount, int nValIdx)
 Returns the observed values. More...
 
Tuple< float[], float[], DateTime[]> GetKnownValues (int nIdx, int nCount)
 Returns the observed values. More...
 
DateTime[] GetTimeSyncValues (int nIdx, int nCount)
 Returns the time sync values. More...
 

Static Public Member Functions

static RawValueSet FromData (int nSrcID, int nItemID, List< RawValue > rg)
 Creates a RawValueSet from a list of RawValues. More...
 

Properties

int ColCount [get]
 Returns the row count of observed and known items. More...
 
DateTime StartTime [get]
 Returns the start time of the data values. More...
 
DateTime EndTime [get]
 Returns the end time of the data values. More...
 
int SourceID [get]
 Returns the source ID. More...
 
int ItemID [get]
 Returns the item ID. More...
 

Detailed Description

The RawValueData class is used to hold the data values for an ItemID.

Definition at line 597 of file DatabaseTemporal.cs.

Constructor & Destructor Documentation

◆ RawValueSet()

MyCaffe.db.temporal.RawValueSet.RawValueSet ( int  nSrcID,
int  nItemID 
)

The constructor.

Parameters
nSrcIDSpecifies the source ID.
nItemIDSpecifies the item ID.

Definition at line 610 of file DatabaseTemporal.cs.

Member Function Documentation

◆ Add()

void MyCaffe.db.temporal.RawValueSet.Add ( RawValue  val)

Add a raw value to the set.

Parameters
valSpecifies the raw value loaded from the dataset.
Exceptions
ExceptionAn exception is thrown if more than one

Definition at line 640 of file DatabaseTemporal.cs.

◆ FromData()

static RawValueSet MyCaffe.db.temporal.RawValueSet.FromData ( int  nSrcID,
int  nItemID,
List< RawValue >  rg 
)
static

Creates a RawValueSet from a list of RawValues.

Parameters
nSrcIDSpecifies the source ID
nItemIDSpecifies the item ID.
rgSpecifies the raw values.
Returns

Definition at line 623 of file DatabaseTemporal.cs.

◆ GetKnownValues()

Tuple< float[], float[], DateTime[]> MyCaffe.db.temporal.RawValueSet.GetKnownValues ( int  nIdx,
int  nCount 
)

Returns the observed values.

Parameters
nIdxSpecifies the start index.
nCountSpecifies the number of items to collect.
Returns
A tuple of the known numeric and categorical values + time is returned, or null if not enough items exists from 'nIdx'.

Definition at line 815 of file DatabaseTemporal.cs.

◆ GetObservedNumValues()

Tuple< float[], DateTime[]> MyCaffe.db.temporal.RawValueSet.GetObservedNumValues ( int  nIdx,
int  nCount,
int  nValIdx 
)

Returns the observed values.

Parameters
nIdxSpecifies the start index.
nCountSpecifies the number of items to collect.
nValIdxSpecifies the index of the target value.
Returns
A tuple of the observed numeric and categorical values is returned, or null if not enough items exists from 'nIdx'.

Definition at line 780 of file DatabaseTemporal.cs.

◆ GetObservedValues()

Tuple< float[], float[], DateTime[]> MyCaffe.db.temporal.RawValueSet.GetObservedValues ( int  nIdx,
int  nCount 
)

Returns the observed values.

Parameters
nIdxSpecifies the start index.
nCountSpecifies the number of items to collect.
Returns
A tuple of the observed numeric and categorical values + time is returned, or null if not enough items exists from 'nIdx'.

Definition at line 739 of file DatabaseTemporal.cs.

◆ GetStaticValues()

Tuple< float[], float[]> MyCaffe.db.temporal.RawValueSet.GetStaticValues ( )

Return the static values.

Returns
The a tuple of the numeric, categorical static values is returned.

Definition at line 717 of file DatabaseTemporal.cs.

◆ GetTimeSyncValues()

DateTime[] MyCaffe.db.temporal.RawValueSet.GetTimeSyncValues ( int  nIdx,
int  nCount 
)

Returns the time sync values.

Parameters
nIdxSpecifies the start index.
nCountSpecifies the number of items to collect.
Returns
An array of the time values is returned.

Definition at line 858 of file DatabaseTemporal.cs.

Property Documentation

◆ ColCount

int MyCaffe.db.temporal.RawValueSet.ColCount
get

Returns the row count of observed and known items.

Definition at line 658 of file DatabaseTemporal.cs.

◆ EndTime

DateTime MyCaffe.db.temporal.RawValueSet.EndTime
get

Returns the end time of the data values.

Definition at line 686 of file DatabaseTemporal.cs.

◆ ItemID

int MyCaffe.db.temporal.RawValueSet.ItemID
get

Returns the item ID.

Definition at line 708 of file DatabaseTemporal.cs.

◆ SourceID

int MyCaffe.db.temporal.RawValueSet.SourceID
get

Returns the source ID.

Definition at line 700 of file DatabaseTemporal.cs.

◆ StartTime

DateTime MyCaffe.db.temporal.RawValueSet.StartTime
get

Returns the start time of the data values.

Definition at line 672 of file DatabaseTemporal.cs.


The documentation for this class was generated from the following file: