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

Median #377

Closed
Beliavsky opened this issue Apr 8, 2021 · 2 comments
Closed

Median #377

Beliavsky opened this issue Apr 8, 2021 · 2 comments
Labels
topic: mathematics linear algebra, sparse matrices, special functions, FFT, random numbers, statistics, ...

Comments

@Beliavsky
Copy link

I suggest that the descriptive statistics section include the median. Alan Miller's median.f90 could be used. Arguably any library that has a function for the mean should also have one for the median, since the latter is a more robust measure of central tendency (although less efficient than the arithmetic mean for Gaussian data).

@jvdp1
Copy link
Member

jvdp1 commented Apr 8, 2021

Thank you for opening this thread. I agree with you that stdlib should include a function for the median (but also for the quartiles,..). However, such functions need sorting algorithms. This might be solved in a near-future with #98. I think it is better to rely on a module that provide general algorithms, instead of implementing its own algorithm as in Alan Miller 's code.

This issue is also related to #113 in which such a function was already proposed.

@jvdp1 jvdp1 added the topic: mathematics linear algebra, sparse matrices, special functions, FFT, random numbers, statistics, ... label Apr 8, 2021
@14NGiestas
Copy link
Member

Closing this issue since it was addressed by #426, stdlib has median since v0.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: mathematics linear algebra, sparse matrices, special functions, FFT, random numbers, statistics, ...
Projects
None yet
Development

No branches or pull requests

3 participants