Encog.ML.Data.Folded.FoldedDataSet.GetRecord C# (CSharp) Method

GetRecord() public method

Get a record.
public GetRecord ( long index, IMLDataPair pair ) : void
index long The index.
pair IMLDataPair The record.
return void
        public void GetRecord(long index, IMLDataPair pair)
        {
            _underlying.GetRecord(CurrentFoldOffset + index, pair);
        }

Usage Example

 /// <summary>
 /// Move to the next record.
 /// </summary>
 /// <returns>True, if we were able to move to the next record.</returns>
 public bool MoveNext()
 {
     if (HasNext())
     {
         IMLDataPair pair = BasicMLDataPair.CreatePair(
             _owner.InputSize, _owner.IdealSize);
         _owner.GetRecord(_currentIndex++, pair);
         _currentPair = pair;
         return(true);
     }
     _currentPair = null;
     return(false);
 }