Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Analyzer3rdParty party   = new Analyzer3rdParty();
            Adapter          adapter = new Adapter(party);

            Dataset listsInList = new Dataset();

            listsInList.LoadDataFromCSV("D:\\Github\\Doop---LV\\LV4\\Z2\\values.csv");

            double[] rowAverage    = adapter.CalculateAveragePerRow(listsInList);
            double[] columnAverage = adapter.CalculateAveragePerColumn(listsInList);

            Console.WriteLine("Avg row: ");
            foreach (var item in rowAverage)
            {
                Console.WriteLine(item.ToString());
            }

            Console.Write("\n");
            Console.WriteLine("Avg column: ");
            foreach (var item in columnAverage)
            {
                Console.WriteLine(item.ToString());
            }
            Console.Write("\n");
        }
Exemplo n.º 2
0
 public Adapter(Analyzer3rdParty service)
 {
     this.analyticsService = service;
 }