Пример #1
0
        private void load(String a)
        {
            String[] lineas = File.ReadAllLines(a);

            for (int i = 1; i < lineas.Length; i++)
            {
                String[] valores = lineas[i].Split(',');

                list.addDato(new Dato(valores[0], valores[1], valores[2], valores[3] + valores[4], valores[5]));

                //Console.WriteLine(valores[0] + " " + valores[1] + " " + valores[2] + " " + valores[3] + valores[4]
                //+ " " + valores[5]);
            }
            fill();
        }
Пример #2
0
        public void loadData()
        {
            //path of the dataset
            //it is inside the docs folder
            string a = "../../data/Dataset.csv";

            String[] lineas = File.ReadAllLines(a);

            for (int i = 2; i < lineas.Length; i++)
            {
                String[] valores = lineas[i].Split(';');

                list.addDato(new Dato(valores[0], valores[1], valores[2], valores[3], valores[4], valores[5], valores[6], valores[7], valores[8]));
            }
            fill();
            loadCharts();
            // initializePredictions();
            //BankPrediction();
        }