Exemplo n.º 1
0
 public static void PrintMat2(Dictionary <string, List <double> > dict, List <string> labelnames)
 {
     foreach (var Actual in labelnames)
     {
         Console.WriteLine();
         var  mat2Table  = new ConsoleTable("Forfatter", "Mean Score", "Range", "SD", "CI 95%");
         bool writeTable = false;
         foreach (var Author in labelnames)
         {
             try
             {
                 if (Author != "")
                 {
                     List <double> scores = dict[Actual + "|" + Author];
                     mat2Table.AddRow(Author, $"{scores.Average():0.####}", $"{scores.Min():0.####}" + " til " + $"{scores.Max():0.####}", $"{CalculateStandardDeviation(scores):0.####}", $"{CalculateConfidenceInterval95(scores):0.####}");
                     writeTable = true;
                 }
             }
             catch (Exception)
             {
             }
         }
         if (writeTable)
         {
             Console.WriteLine("TEKSTER AF " + Actual.ToUpper());
             mat2Table.Write();
         }
     }
 }