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

Refactor: Apply Horner's method to error function #356

Merged

Conversation

harunorimurata
Copy link
Contributor

Applying Horner's method to errorFunction.
Related to #355.

@@ -16,17 +16,21 @@ function errorFunction(x) {
const tau =
t *
Math.exp(
-Math.pow(x, 2) -
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind adding more information to the JSDoc comment above this method to explain which algorithm is used to solve it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added. Thanks!

Copy link
Member

@tmcw tmcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks @harunorimurata!

@tmcw tmcw merged commit d7d1f3d into simple-statistics:master Feb 7, 2019
@tmcw tmcw mentioned this pull request Feb 7, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants