We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sometimes derivativeBSpline function returns wrong values the right code is
int n = myX.length; double[] newControlPointsX = new double[n - 1]; double[] newControlPointsY = new double[n - 1]; for (int i = 0; i < n - 1; i++) { newControlPointsX[i] = degree * (myX[i + 1] - myX[i]) / (knots[i + degree + 1] - knots[i + 1]); newControlPointsY[i] = degree * (myY[i + 1] - myY[i]) / (knots[i + degree + 1] - knots[i + 1]); } double[] newKnots = new double[knots.length - 2]; System.arraycopy(knots, 1, newKnots, 0, newKnots.length); return new BSpline(newControlPointsX, newControlPointsY, newKnots);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
sometimes derivativeBSpline function returns wrong values
the right code is
The text was updated successfully, but these errors were encountered: