Skip to content

Commit

Permalink
Fix polymonial mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ustc-zzzz committed Oct 10, 2023
1 parent 6c2f75b commit 81f1207
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 81f1207

Please sign in to comment.