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

algorithm: average/mean #30

Merged
merged 5 commits into from
Oct 9, 2022

Conversation

orangegrove1955
Copy link
Contributor

Includes changes related to Issue: #10

Included a new maths function to calculate the mean of an array of numeric values, as well as associated tests

@Panquesito7 Panquesito7 added the enhancement New feature or request label Oct 4, 2022
Maths/AverageMean.ts Outdated Show resolved Hide resolved
appgurueu
appgurueu previously approved these changes Oct 6, 2022
Copy link
Member

@raklaptudirm raklaptudirm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just Mean would be a better name. @appgurueu what do yo think?

@appgurueu
Copy link
Contributor

I think just Mean would be a better name. @appgurueu what do yo think?

Yeah, average or mean instead of "AverageMean" would be a better name. Also should ideally have a verb (calcAverage, findMean, getMean) and be lowercase because it's a function... My approval was premature.

@orangegrove1955
Copy link
Contributor Author

@appgurueu @raklaptudirm I've updated the name to be calculateMean, hopefully that works now!

@raklaptudirm raklaptudirm changed the title Added AverageMean and associated tests to Maths algorithm: average/mean Oct 9, 2022
@raklaptudirm raklaptudirm merged commit 1d655b4 into TheAlgorithms:master Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants