Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

            Dataset          data     = new Dataset("data.csv");
            Analyzer3rdParty analyzer = new Analyzer3rdParty();
            Adapter          adapter  = new Adapter(analyzer);

            Console.WriteLine("Column average: ");

            double[] columnAverage = adapter.CalculateAveragePerColumn(data);
            for (int i = 0; i < columnAverage.Length; i++)
            {
                Console.WriteLine(columnAverage[i]);
            }
            Console.WriteLine("Row average: ");
            double[] rowAverage = adapter.CalculateAveragePerRow(data);
            for (int i = 0; i < rowAverage.Length; i++)
            {
                Console.WriteLine(rowAverage[i]);
            }
        }
Ejemplo n.º 2
0
 public Adapter(Analyzer3rdParty service)
 {
     this.analyticsService = service;
 }