{"id":13583054,"url":"https://github.com/elstats/percentile","last_synced_at":"2025-04-06T18:31:48.951Z","repository":{"id":48034456,"uuid":"123561007","full_name":"elstats/percentile","owner":"elstats","description":"Calculate n-th percentile of an observation variable","archived":false,"fork":false,"pushed_at":"2021-08-10T17:44:36.000Z","size":207,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T16:22:05.750Z","etag":null,"topics":["percentile","statistics","stats"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elstats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-02T09:43:27.000Z","updated_at":"2022-04-21T17:05:50.000Z","dependencies_parsed_at":"2022-08-12T17:10:58.807Z","dependency_job_id":null,"html_url":"https://github.com/elstats/percentile","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elstats%2Fpercentile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elstats%2Fpercentile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elstats%2Fpercentile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elstats%2Fpercentile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elstats","download_url":"https://codeload.github.com/elstats/percentile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247531026,"owners_count":20953884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["percentile","statistics","stats"],"created_at":"2024-08-01T15:03:13.533Z","updated_at":"2025-04-06T18:31:48.600Z","avatar_url":"https://github.com/elstats.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Percentile [![Build Status](https://travis-ci.org/elstats/percentile.svg?branch=master)](http://travis-ci.org/elstats/percentile)\n\n\u003e Calculate n-th percentile\n\n## Installation\n\n```sh\nnpm install @elstats/percentile\n```\n\n## Example 1\n\n```js\nimport percentile from '@elstats/percentile';\n\n// calculate p75\npercentile(\n    [3, 6, 7, 8, 8, 10, 13, 15, 16, 20],\n    75\n); // → 15\n```\n\n## Example 2\n\n```js\nconst percentile = require('@esltats/percentile');\n\nfunction p95() {\n    return data =\u003e percentile(data, 95);\n}\n\np95([\n  10, 13, 15, 16, 20, 3, 6, 7, 7, 15, 19, 13,\n  13, 8, 19, 35, 22, 17, 19, 19, 12, 21, 9, 9, 12\n]); // → 22\n```\n\n## More info\n\nSee [Nearest Rank Method](http://en.wikipedia.org/wiki/Percentile#The_Nearest_Rank_method)\n\n## License\n\nMIT \u0026copy; [Michał Jezierski](https://pl.linkedin.com/in/jezierskimichal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felstats%2Fpercentile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felstats%2Fpercentile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felstats%2Fpercentile/lists"}