Skip to content

feat(maths): implement discrete and continuous series for Mean and Median algorithms - #197

Open
mrfiiqane wants to merge 1 commit into
TheAlgorithms:masterfrom
mrfiiqane:master
Open

feat(maths): implement discrete and continuous series for Mean and Median algorithms#197
mrfiiqane wants to merge 1 commit into
TheAlgorithms:masterfrom
mrfiiqane:master

Conversation

@mrfiiqane

Copy link
Copy Markdown

This Pull Request expands the statistical algorithms in the repository by adding support for Discrete and Continuous series to both the Mean and Median calculations. Previously, only the Individual series were supported.

Changes included:

Added mean_discrete and mean_continuous functions to Mean.php
Added median_discrete and median_continuous functions to Median.php
Added mathematical formulas
Implemented unit tests
All code has been formatted according to PSR-12 and strict typing has been used throughout.

…dian

- Added mean_discrete and mean_continuous functions in Maths/Mean.php

- Added median_discrete and median_continuous functions in Maths/Median.php

- Included explicit inline documentation and mathematical formula comments for all new functions

- Implemented comprehensive PHPUnit test cases in tests/Maths/MathsTest.php to validate expected output and edge cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant