Skip to content
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

Criteria to decide whether to try to re-parameterize in FitCurves is bad (scale-dependent) #23

Closed
jimmyland opened this issue Sep 5, 2017 · 5 comments

Comments

@jimmyland
Copy link

e.g. if units are such that user's error threshold is less than 1, the function will never try to re-parameterize. Based on the usage example (where error is 4.0), I think the intent would be preserved if you just set iterationError = error * 4.0;

bad code is here:

iterationError = error * error;

(and iterationError is used at line 146)

@erich666
Copy link
Owner

erich666 commented Sep 6, 2017

Thanks. I've attempted to contact the author, Phil Schneider, for his opinion.

@jimmyland
Copy link
Author

Alternatively I could do a PR that exposes the error scale factor as a parameter? (and that line would then become iterationError = error * iterationErrorScaleFactor;?)

@erich666
Copy link
Owner

erich666 commented Oct 3, 2017

The good news is that Philip Schneider recently responded, so I'm hoping he'll look at the code soon and figure out what's the most sensible.

@erich666
Copy link
Owner

Pinged Philip.

erich666 added a commit that referenced this issue Jul 17, 2018
@erich666
Copy link
Owner

Philip replied: "The suggested change is probably OK." So I've checked it in, and pointed the interested user at this issue for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants