-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Suggestion] Math.mean and Math.roundBy #13
Comments
MeansI support the addition of a buildin function for the arithmetic mean, but I think
Since you might want to support truncated means or weighted means out of the box as well, it might make sense to expect the arguments OtherOther functions working on a set of values would make sense as well:
RoundingFor rounding #11, I would prefer a module as a second parameter that the result must be a multiple of: |
Also Standard Deviation may be a good idea |
Hello, I really like this proposal, and I'd like two suggestions
Math.mean([1,2,3]) // 2
Math.roundBy(100.1234, 2) // 100.12
I'm proposing a separated method for round, since I think that Math.round could lead to breaking changes
The text was updated successfully, but these errors were encountered: