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

Return percentile percentage value #109

Open
jirikrepl opened this issue Aug 9, 2021 · 1 comment
Open

Return percentile percentage value #109

jirikrepl opened this issue Aug 9, 2021 · 1 comment

Comments

@jirikrepl
Copy link

jirikrepl commented Aug 9, 2021

Hi @d4rkr00t,

I like your code very much.
I would like to calculate a percentile "percentage value" like in this video:
https://youtu.be/Snf6Wpn-L4c?t=55

Do sth. like this (your modified example from Readme.md):
(obviously the function arguments would need to be changed somehow)

const percentile = require("percentile");
console.log(percentile(8, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])); // 80
@d4rkr00t
Copy link
Owner

Hi! Interesting idea, I'll think about it. Not sure yet how to better fit it in this package.

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

No branches or pull requests

2 participants