示例#1
0
 public void MeanTest()
 {
     Assert.AreEqual(3, StatOperations.Mean(arrayB));
 }
 public void MedianTest()
 {
     double[] a = { 10.45, 20.5, 10, 20.1, 15.5 };
     Assert.AreEqual(3, StatOperations.Median(a));
 }
 public void ModeTest()
 {
     double[] a = { 15.50, 20.5, 10, 20.1, 15.5 };
     Assert.AreEqual(15.5, StatOperations.Mode(a));
 }
示例#4
0
 /// <summary>
 /// Creates an augmenting item
 /// </summary>
 /// <param name="name">The name of the item</param>
 public Augmenter(string name)
     : base(name)
 {
     StatModifications = new Stats(this);
     StatOperations = new StatOperations(this);
 }