Exemple #1
0
        public void ValidateBooleanStatisticsAsDiscreteStatistics()
        {
            BooleanStatistics  boolStat1 = BooleanStatistics.GetInstance(true);
            DiscreteStatistics dStat     = boolStat1.AsDiscreteStatistics();

            Assert.AreEqual(boolStat1, dStat.AsBooleanStatistics());
        }
Exemple #2
0
        public void ValidateMissingStatisticsAsDiscreteStatistics()
        {
            MissingStatistics  boolStat1 = MissingStatistics.GetInstance;
            DiscreteStatistics dStat     = boolStat1.AsDiscreteStatistics();

            Assert.AreEqual(boolStat1, dStat.AsBooleanStatistics());
        }
        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());
        }