-
Notifications
You must be signed in to change notification settings - Fork 18k
math: implement statistical functions for mean, median, mode, variance, and stddev #69195
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
This PR (HEAD: b66c5e5) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610055. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
Message from Hemanth M: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
Message from Ian Lance Taylor: Patch Set 1: Hold+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
Message from Hemanth M: Patch Set 1: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
Message from Hemanth M: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
Message from Hemanth M: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
Message from Keith Randall: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
This PR (HEAD: f935962) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610055. Important tips:
|
… of float64 numbers.
This PR (HEAD: 6efd111) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610055. Important tips:
|
This PR (HEAD: 2986695) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610055. Important tips:
|
Message from Hemanth M: Patch Set 4: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610055. |
This PR enhances the Go math package by adding essential statistical functions: Mean, Median, Mode, Variance, StdDev, and Percentile. These additions provide critical tools for data analysis and statistical computation directly within the standard library.
Key Features:
Comprehensive Statistical Analysis: The new functions offer fundamental statistical measures to help developers perform in-depth data analysis and understand data distributions better.
Edge Case Handling: The functions handle special cases, such as empty slices, to ensure predictable and reliable behavior.
Performance and Accuracy: Implemented with efficient algorithms to ensure optimal performance while maintaining accuracy in calculations.
Increased Utility: By integrating these functions into the math package, this PR reduces the need for external libraries, making statistical computation more accessible and consistent.
This enhancement provides Go developers with robust and reliable statistical tools, streamlining data analysis tasks and improving the language's capabilities for scientific and financial applications.