Interface ICursor
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Collections
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public interface ICursor : ICloneable
Properties
Count
The number of positions in the source array that one instance consumes.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
The cursor can be advanced to the next instance via
Start = Start + Count
.
Start
The position of the cursor in its source array.
Declaration
int Start { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Position is measured in the same units as Count.
The instance data spans locations Start, ..., Start+Count-1
in
the source array.
Methods
CreateSourceArray(Int32)
Point the cursor at a new source array.
Declaration
void CreateSourceArray(int nRecords)
Parameters
Type | Name | Description |
---|---|---|
Int32 | nRecords |
Remarks
The source array is allocated to have nRecords * Count positions.
ReferenceClone()
Make a new cursor object having the same source array, at the same position.
Declaration
ICursor ReferenceClone()
Returns
Type | Description |
---|---|
ICursor |