public void UpdateTest() { SmoothedDataWithPercentiles data = new SmoothedDataWithPercentiles(); data.Update(2, 3); data.Update(2, 6); data.Update(2, 2); Assert.AreEqual(3, data.SmoothedValue); }
public void UpdateWithPresetDoubleWeightTest() { SmoothedDataWithPercentiles data = new SmoothedDataWithPercentiles(); data.Preset(8); data.Update(5, 3); Assert.AreEqual(3, data.SmoothedValue); }