public void ValidateDiscreteStatisticsAsDiscreteStatistics() { DiscreteStatistics boolStat1 = DiscreteStatistics.GetInstance(5); GaussianStatistics dStat = boolStat1.AsGaussianStatistics(); Assert.AreEqual(boolStat1, dStat.AsDiscreteStatistics()); }
public void ValidateGaussianStatisticsAsDiscreteStatistics() { IEnumerable <double> obj = new List <double>() { 4, 2, 3 }; GaussianStatistics boolStat1 = GaussianStatistics.GetInstance(obj); DiscreteStatistics dStat = boolStat1.AsDiscreteStatistics(); Assert.AreEqual(3, dStat.AsGaussianStatistics().Mean); }