public void StdDevTest()
 {
     var s = new Descriptives();
     s.AddSample(0);
     s.AddSample(2);
     Assert.IsTrue(Math.Abs(s.StdDev()-Math.Sqrt(2)) < 1e-12);
 }
Exemple #2
0
 private void ReportStats(Descriptives s)
 {
     lock (s)
     {
         AverageField.Text = s.Mean().ToString();
         StdDevField.Text = s.StdDev().ToString();
     }
 }