SetLocation() public method

Set the current location to the specified row.
public SetLocation ( int row ) : void
row int The row.
return void
        /// <summary>
        /// Read an individual record.
        /// </summary>
        /// <param name="index">The zero-based index. Specify 0 for the first record, 1 for
        /// the second, and so on.</param>
        /// <param name="pair">The data to read.</param>
        public void GetRecord(long index, IMLDataPair pair)
        {
            double[] inputTarget = pair.InputArray;
            double[] idealTarget = pair.IdealArray;

            egb.SetLocation((int)index);
            egb.Read(inputTarget);
            egb.Read(idealTarget);
            pair.Significance = egb.Read();
        }
        /// <inheritdoc/>
        public IMLDataPair this[int x]
        {
            get
            {
                var input = new double[InputSize];
                var ideal = new double[IdealSize];

                _egb.SetLocation(x);
                _egb.Read(input);
                _egb.Read(ideal);

                var inputData = new BasicMLData(input, false);
                var idealData = new BasicMLData(ideal, false);

                var result = new BasicMLDataPair(inputData, idealData);
                result.Significance = _egb.Read();
                return(result);
            }
        }