public void FilterMovingAverage_GetOutput_2() { Filter filter = new FilterMovingAverage(4); filter.AddInput(-155.0); filter.AddInput(-160.0); filter.AddInput(-175.0); filter.AddInput(172.0); double result = filter.GetOutput(); Assert.IsTrue(ExtraMath.EqualValue(result, 190.5)); }
public void FilterMovingAverage_GetOutput_1() { Filter filter = new FilterMovingAverage(4); filter.AddInput(10.0); filter.AddInput(15.0); filter.AddInput(25.0); filter.AddInput(36.0); double result = filter.GetOutput(); Assert.IsTrue(ExtraMath.EqualValue(result, 21.5)); }