{"id":21126742,"url":"https://github.com/lukem512/statistical-methods","last_synced_at":"2025-03-14T11:43:37.985Z","repository":{"id":57370228,"uuid":"56222713","full_name":"lukem512/statistical-methods","owner":"lukem512","description":"A collection of statistical methods","archived":false,"fork":false,"pushed_at":"2017-07-31T11:47:20.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T03:35:29.574Z","etag":null,"topics":["average","deviation","mean","statistics","variance"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukem512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-14T09:01:53.000Z","updated_at":"2021-11-14T08:18:53.000Z","dependencies_parsed_at":"2022-09-26T16:41:08.205Z","dependency_job_id":null,"html_url":"https://github.com/lukem512/statistical-methods","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fstatistical-methods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fstatistical-methods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fstatistical-methods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fstatistical-methods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukem512","download_url":"https://codeload.github.com/lukem512/statistical-methods/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243300524,"owners_count":20269255,"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":["average","deviation","mean","statistics","variance"],"created_at":"2024-11-20T04:45:15.137Z","updated_at":"2025-03-14T11:43:37.953Z","avatar_url":"https://github.com/lukem512.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# statistical-methods\n\n[![Build Status](https://travis-ci.org/lukem512/statistical-methods.svg?branch=master)](https://travis-ci.org/lukem512/statistical-methods) ![Build Status](https://david-dm.org/lukem512/statistical-methods.svg) [![npm](https://img.shields.io/npm/l/statistical-methods.svg)](https://www.npmjs.com/package/statistical-methods) [![npm](https://img.shields.io/npm/v/statistical-methods.svg)](https://www.npmjs.com/package/statistical-methods) [![npm](https://img.shields.io/npm/dm/statistical-methods.svg)](https://www.npmjs.com/package/statistical-methods)\n\nThis is an NPM module providing a collection of statistical methods including mean, mode, median, range, variance, standard deviation, sum and product.\n\nTo use it, simple install via NPM and include it in your project file.\n\n```js\nvar sm = require('statistical-methods');\n```\n\nThen, use the following functions to perform statistical analysis on your data.\n\n```js\nvar arr = [ 8, 9, 10, 10, 10, 11, 11, 11, 12, 13];\n\nconsole.log(sm.mean(arr)); // 10.5\nconsole.log(sm.median(arr)); // 10.5\nconsole.log(sm.mode(arr)); // [10, 11]\n\nconsole.log(sm.min(arr)); // 8\nconsole.log(sm.max(arr)); // 13\nconsole.log(sm.range(arr)); // 5\n\nconsole.log(sm.variance(arr)); // 2.0555555555555554,\nconsole.log(sm.stddev(arr)); // 1.4337208778404378,\n\nconsole.log(sm.sum(arr)); // 105\nconsole.log(sm.prod(arr)); // 14949792000\n```\n\nThe expected data format for all functions is an array of numbers (integers or floats).\n\n### License\n\nMIT © Luke Mitchell\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukem512%2Fstatistical-methods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukem512%2Fstatistical-methods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukem512%2Fstatistical-methods/lists"}