Exemple #1
0
        private static double[] ReadLine(ReadCSV csv)
        {
            var line = new double[csv.GetCount()];

            for (int i = 0; i < csv.GetCount(); i++)
            {
                line[i] = csv.GetDouble(i);
            }
            return(line);
        }
Exemple #2
0
        /// <summary>
        /// Construct a loaded row.
        /// </summary>
        ///
        /// <param name="csv">The CSV file to use.</param>
        /// <param name="extra">The number of extra columns to add.</param>
        public LoadedRow(ReadCSV csv, int extra)
        {
            int count = csv.GetCount();

            _data = new String[count + extra];
            for (int i = 0; i < count; i++)
            {
                _data[i] = csv.Get(i);
            }
        }