Encog.Util.CSV.ReadCSV.GetDouble C# (CSharp) Method

GetDouble() public method

Get the specified column as a double.
public GetDouble ( String column ) : double
column String The column to read.
return double
        public double GetDouble(String column)
        {
            String str = Get(column);
            return _format.Parse(str);
        }

Same methods

ReadCSV::GetDouble ( int column ) : double

Usage Example

        protected override void LoadTestData(string testFile)
        {
            ReadCSV test_csv = new ReadCSV(testFile, true, CSVFormat.DecimalPoint);

            List<double[]> test_input = new List<double[]>();
            test_input_orig = new List<double[]>();

            while (test_csv.Next())
            {
                double x = test_csv.GetDouble(0);
                double y = test_csv.GetDouble(1);

                test_input.Add(new[] { x, y });
                test_input_orig.Add(new[] { x, y });
            }

            test_csv.Close();

            //Analyze(ref test_input);
            Normalize(ref test_input, ref vmin, ref vmax);

            testData = new List<IMLData>();
            foreach (var d in test_input)
            {
                testData.Add(new BasicMLData(d));
            }
        }
All Usage Examples Of Encog.Util.CSV.ReadCSV::GetDouble