public void FilterSinglePole_GetOutput_2() { Filter filter = new FilterSinglePole(3, 0.5); 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, 134.023)); }
public void FilterSinglePole_GetOutput_1() { Filter filter = new FilterSinglePole(3, 0.5); 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, 29.609)); }