예제 #1
0
        public void UpdateTest()
        {
            SmoothedDataWithPercentiles data = new SmoothedDataWithPercentiles();

            data.Update(2, 3);
            data.Update(2, 6);
            data.Update(2, 2);
            Assert.AreEqual(3, data.SmoothedValue);
        }
예제 #2
0
        public void UpdateWithPresetDoubleWeightTest()
        {
            SmoothedDataWithPercentiles data = new SmoothedDataWithPercentiles();

            data.Preset(8);
            data.Update(5, 3);
            Assert.AreEqual(3, data.SmoothedValue);
        }