From 81f1207eb954975a440667cac070d690a1174493 Mon Sep 17 00:00:00 2001 From: Yanbing Zhao Date: Tue, 10 Oct 2023 22:19:19 +0800 Subject: [PATCH] Fix polymonial mapping --- src/main/java/org/teacon/signin/client/PolynomialMapping.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/teacon/signin/client/PolynomialMapping.java b/src/main/java/org/teacon/signin/client/PolynomialMapping.java index 29f4979..efb37ec 100644 --- a/src/main/java/org/teacon/signin/client/PolynomialMapping.java +++ b/src/main/java/org/teacon/signin/client/PolynomialMapping.java @@ -118,7 +118,7 @@ public void interpolate(double[] inputX, double[] inputY, double[] inputDX, doub Complex currentValue = current.sub(this.inputParameters.get(0)), resultValue = currentOutputFactor; for (int j = 1; j < degree; ++j) { - Complex inputFactor = current.sub(this.inputParameters.get(i)); + Complex inputFactor = current.sub(this.inputParameters.get(j)); currentOutputFactor = currentOutput.next(); resultDerivative = resultDerivative.add(currentDerivative.mul(currentOutputFactor));