{"id":22780052,"url":"https://github.com/sitegui/summary-statistics","last_synced_at":"2025-03-30T14:15:46.234Z","repository":{"id":30760319,"uuid":"34316951","full_name":"sitegui/summary-statistics","owner":"sitegui","description":"Summarize a set of observations, in order to communicate the largest amount of information as simply as possible","archived":false,"fork":false,"pushed_at":"2015-04-21T09:19:50.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T23:03:09.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sitegui.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":"2015-04-21T09:19:02.000Z","updated_at":"2017-08-19T23:47:34.000Z","dependencies_parsed_at":"2022-09-03T11:50:45.705Z","dependency_job_id":null,"html_url":"https://github.com/sitegui/summary-statistics","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitegui%2Fsummary-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitegui%2Fsummary-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitegui%2Fsummary-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitegui%2Fsummary-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sitegui","download_url":"https://codeload.github.com/sitegui/summary-statistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245183795,"owners_count":20574078,"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":[],"created_at":"2024-12-11T20:12:08.259Z","updated_at":"2025-03-30T14:15:46.157Z","avatar_url":"https://github.com/sitegui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summary Statistics\n\nSummarize a set of observations, in order to communicate the largest amount of information as simply as possible. [Learn more](http://en.wikipedia.org/wiki/Summary_statistics)\n\n## Install\n`npm install summary-statistics --save`\n\n## Usage\n```js\nvar ss = require('summary-statistics')\n\nvar values = [3, 14, 15, 92, 65, 35, 89, 79, 32, 38, 46, 26, 43, 38, 32, 79, 5]\n\nvar summary = ss(values)\n/* {\n *     num: 17,\n *     sum: 731,\n *     avg: 43,\n * \n *     min: 3,\n *     q1: 23.25,\n *     median: 38,\n *     q3: 68.5,\n *     max: 92\n * }\n */\n```\n\n## ss(values)\n`values` is an array of numbers. Return an object with the keys:\n\n* `num`: the number of elements in `array`\n* `sum`: the sum of all elements\n* `avg`: the average\n* `min`: the least value\n* `q1`: the lower quartile (splits off the lowest 25% of data from the highest 75%)\n* `median`: the value in the 'middle' (cuts data set in half)\n* `q3`: the upper quartile (splits off the highest 25% of data from the lowest 75%)\n* `max`: the greatest value\n\n`values` does not need to be ordered and it will *not* be modified.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitegui%2Fsummary-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsitegui%2Fsummary-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitegui%2Fsummary-statistics/lists"}