Skip to content

fitting error when use approximate_curve #156

New issue

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

Closed
maozaizhou opened this issue Sep 21, 2022 · 1 comment
Closed

fitting error when use approximate_curve #156

maozaizhou opened this issue Sep 21, 2022 · 1 comment
Labels
bug There is a problem with the coding or algorithms

Comments

@maozaizhou
Copy link

Describe the bug
hi, when i use the approximate_curve function to fit some 2d points, there are obvious fitting error in first few points,but it looks fitting well in the end
To Reproduce
Steps to reproduce the behavior:

  1. here is the 2d points
    fitting_points.txt
  2. then run some code like example
    degree = 3 curve = fitting.approximate_curve(points, degree)
    the result plot like this
    fitting_error_degree2

compare2
the purple points is the original points which i want to fit , the purple line is fitting by scipy LSQUnivariateSpline , the huge difference locate in first few points

then i try revert the points order , the same error still appear in first few points like the plot show bellow
compare3
fitting_error_revert

appreciate if any suggestion.

@maozaizhou maozaizhou added the bug There is a problem with the coding or algorithms label Sep 21, 2022
@maozaizhou
Copy link
Author

duplicate with #120 close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is a problem with the coding or algorithms
Projects
None yet
Development

No branches or pull requests

1 participant