Пример #1
0
        public void EntiatRiver()
        {
            Series s = TestData.EntiatRiver;

            Console.WriteLine(s.Count);
            Assert.AreEqual(3642, s.Count, "data count has changed!");

            Series sorted = Math.Sort(s, RankType.Weibul);

            TestEntiatRiverSortedValues(sorted);
            //sorted.WriteToConsole(false, true);
            //1822	50.01372495
        }
Пример #2
0
        public void EntiatRiver24Points()
        {
            Series s = TestData.EntiatRiver24Points;

            Console.WriteLine(s.Count);
            Assert.AreEqual(24, s.Count, "data count has changed!");

            Series sorted = Math.Sort(s, RankType.Weibul);//new ExceedanceSeries(s);

            sorted.WriteToConsole(true, true);
            Assert.AreEqual(762, sorted[0].Value, 0.01, "Max value not sorted to top");

            Assert.AreEqual(487, sorted[sorted.Count - 1].Value, 0.01, "Max value not sorted to top");

            Assert.AreEqual(642, sorted[12].Value, 0.001, "  value ");
            Assert.AreEqual(52, sorted[12].Percent, 0.01, " percentage ");
        }