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

standardize some statistics for a sample of 1 point #8242

Merged
merged 1 commit into from
Dec 29, 2023
Merged

Conversation

PaulWessel
Copy link
Member

While things like std.dev clearly are NaN for a single point sample, the mean is defined (the value of the single point) and you can say the same of quartiles and mode. We had a mix bag here with sometime returning NaN for mean. This PR fixes this and returns NaN only for quantities that requres > 1 point. No effect on tests.

While things like std.dev clearly are NaN for a single point sample, the mean is defined (the value of the single point) and you can say the same of quartiles and mode.  We had a mix bag here with sometime returning NaN for mean.  This PR fixes this and returns NaN only for quantities that requres > 1 point.  No effect on tests.
@PaulWessel PaulWessel added the maintenance Boring but important stuff for the core devs label Dec 29, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Dec 29, 2023
@PaulWessel PaulWessel self-assigned this Dec 29, 2023
@PaulWessel PaulWessel merged commit 3199403 into master Dec 29, 2023
6 checks passed
@PaulWessel PaulWessel deleted the stats-fixes branch December 29, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants