From 8e4e4ca988b9445860f12d6a28e1638be1e0a1f3 Mon Sep 17 00:00:00 2001 From: Tobias Glaubach Date: Tue, 10 Jul 2018 22:47:47 +0200 Subject: [PATCH] typo fix and small bugfix --- src/Numerics/LtiSystems/TransferFunctionDiscrete.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;