Пример #1
0
        static void Main(string[] args)
        {
            Dataset dataset = new Dataset();

            dataset.LoadDataFromCSV("C:/Users/korisnik/source/repos/RPPOON LV4/CSVFile.txt");

            Analyzer3rdParty analyzer3rd = new Analyzer3rdParty();
            Adapter          adapter     = new Adapter(analyzer3rd);

            double[] averagePerRow    = adapter.CalculateAveragePerRow(dataset);
            double[] averagePerColumn = adapter.CalculateAveragePerColumn(dataset);

            Console.WriteLine("Row average: ");
            PrintAverage(averagePerRow);
            Console.WriteLine("Column average:");
            PrintAverage(averagePerColumn);
        }
Пример #2
0
 public Adapter(Analyzer3rdParty service)
 {
     this.analyticsService = service;
 }