-
Notifications
You must be signed in to change notification settings - Fork 21
Add a correction
keyword to the std
methods
#183
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Marco. LGTM modulo my minor type annotation comment.
correction | ||
Correction to apply to the result. 0 for sample standard deviation | ||
and 1 for population standard deviation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're only supporting 0 or 1 can this just be an int
for now? We could change to allow float
s later if desired?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the description is misleading here. The 0
and 1
references are, tmk, to help users identify common correction values. See the Array API specification for a more extensive description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we "borrow" the docstring from the Array API specification then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with me, but up to Marco. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reworded to make clear that 0
and 1
are just examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That rewording was for only 1 of 4 docstrings. I now edited all of them, and for one adopted the more extensive description from the array API standard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarcoGorelli if you're happy with that change, I think this PR is good to go.
correction
to stdcorrection
keyword to the std
methods
Also a note on the default: that is |
much appreciated, nice improvement - thanks! |
closes #170