diff --git a/src/Numerics/LtiSystems/TransferFunctionDiscrete.cs b/src/Numerics/LtiSystems/TransferFunctionDiscrete.cs index e2659a6e..c050eca8 100644 --- a/src/Numerics/LtiSystems/TransferFunctionDiscrete.cs +++ b/src/Numerics/LtiSystems/TransferFunctionDiscrete.cs @@ -560,15 +560,15 @@ namespace MathNet.Numerics.LtiSystems /// calculates y_k = G(q^-1) * x_k for a given x_k array public IEnumerable CalcResponse(IEnumerable x) { - return (this.CalcResponse(this.b, this.a, x.ToArray())); + return this.CalcResponse(x.ToArray()); } /// calculates y_k = G(q^-1) * x_k for a given x_k array public double[] CalcResponse(double[] x) { - // this is basically a two step convoltion and could be replaced by a + // this is basically a two step convolution and could be replaced by a // conv implementation. - // however... this code works and replacing it would be more work + // however... this code works fine and replacing it would be more work double y_now = 0.0d; int idx_a = 0;