public void ValidateDiscreteStatisticsAsStatisticsList() { DiscreteStatistics boolStat1 = DiscreteStatistics.GetInstance(5); StatisticsList dStat = boolStat1.AsStatisticsList(); Assert.AreEqual(boolStat1, dStat.AsDiscreteStatistics()); }
public void ValidateStatisticsListAsDiscreteStatistics() { StatisticsList statList = new StatisticsList(); GaussianStatistics gaussStat = GaussianStatistics.GetInstance(2.33, 1.256, 7); DiscreteStatistics discreteStat = DiscreteStatistics.GetInstance(1); MissingStatistics missingStat = MissingStatistics.GetInstance; statList.Add(gaussStat); statList.Add(discreteStat); statList.Add(missingStat); DiscreteStatistics dStat = statList.AsDiscreteStatistics(); Assert.AreEqual(statList, dStat.AsBooleanStatistics()); }