-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-45876: Improve accuracy for stdev() and pstdev() in statistics #29736
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
bbd2da9
Merge pull request #1 from python/master
rhettinger 74bdf1b
Merge branch 'master' of github.com:python/cpython
rhettinger 6c53f1a
Merge branch 'master' of github.com:python/cpython
rhettinger a487c4f
.
rhettinger eb56423
.
rhettinger cc7ba06
.
rhettinger d024dd0
.
rhettinger b10f912
merge
rhettinger fb6744d
merge
rhettinger 7f21a1c
Merge branch 'main' of github.com:python/cpython
rhettinger 7da42d4
Merge branch 'main' of github.com:rhettinger/cpython
rhettinger e31757b
Merge branch 'main' of github.com:python/cpython
rhettinger f058a6f
Merge branch 'main' of github.com:python/cpython
rhettinger 1fc29bd
Merge branch 'main' of github.com:python/cpython
rhettinger e5c0184
Merge branch 'main' of github.com:python/cpython
rhettinger 3c86ec1
Merge branch 'main' of github.com:python/cpython
rhettinger 96675e4
Merge branch 'main' of github.com:rhettinger/cpython
rhettinger de558c6
Merge branch 'main' of github.com:python/cpython
rhettinger 418a07f
Merge branch 'main' of github.com:python/cpython
rhettinger ea23a8b
Merge branch 'main' of github.com:python/cpython
rhettinger 71f7dcd
Inlined code from variance functions
rhettinger 139e19f
Added helper functions for the float square root of a fraction
rhettinger 06c2080
Call helper functions
rhettinger e7ff885
Add blurb
rhettinger 34d59a5
Fix over-specified test
rhettinger f6c8a97
Add a test for the _sqrt_frac() helper function
rhettinger e439945
Increase the tested range
rhettinger 520e216
Add type hints to the internal function.
rhettinger 8c9d78e
Fix test for correct rounding
rhettinger d36ea9b
Simplify ⌊√(n/m)⌋ calculation
rhettinger 28fdccf
Add comment and beef-up tests
rhettinger a17f2d9
Test for zero denominator
rhettinger 2aa88b0
Add algorithmic references
rhettinger 64bff13
Add test for the _isqrt_frac_rto() helper function.
rhettinger 4fde157
Compute the 109 instead of hard-wiring it
rhettinger acc58ff
Stronger test for _isqrt_frac_rto()
rhettinger eba6e8d
Bigger range
rhettinger a4354c7
Bigger range
rhettinger 95330ee
Replace float() call with int/int division to be parallel with the ot…
rhettinger 14ff0d1
Factor out division. Update proof link. Remove internal type declaration
rhettinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add comment and beef-up tests
- Loading branch information
commit 28fdccf215c7e65fa4cb3038d0b634bcbbb29134
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.