Example #1
0
 static void Main(string[] args)
 {
     Console.WriteLine("London Mean: " + Rainfall.Mean("London", data));
     Console.WriteLine("London Variable: " + Rainfall.Variance("London", data));
     Console.WriteLine("Beijing Mean: " + Rainfall.Mean("Beijing", data));
     Console.WriteLine("Beijing Variable: " + Rainfall.Variance("Beijing", data));
     Console.ReadLine();
 }
Example #2
0
 public static void Test2()
 {
     Console.WriteLine("Fixed Tests: variance data");
     AssertFuzzyEquals(Rainfall.Variance("London", RainfallTests.data), 57.42833333333374);
     AssertFuzzyEquals(Rainfall.Variance("Beijing", RainfallTests.data), 4808.37138888889);
 }
Example #3
0
 public static void Test1()
 {
     Console.WriteLine("Fixed Tests: mean data");
     AssertFuzzyEquals(Rainfall.Mean("London", RainfallTests.data), 51.199999999999996);
     AssertFuzzyEquals(Rainfall.Mean("Beijing", RainfallTests.data), 52.416666666666664);
 }