Ejemplo n.º 1
0
        public void ValidateBooleanStatisticsAsDiscreteStatistics()
        {
            BooleanStatistics  boolStat1 = BooleanStatistics.GetInstance(true);
            DiscreteStatistics dStat     = boolStat1.AsDiscreteStatistics();

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

            Assert.AreEqual(boolStat1, dStat.AsBooleanStatistics());
        }
Ejemplo n.º 3
0
        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());
        }