{"id":15834844,"url":"https://github.com/kaelzhang/s-deviation","last_synced_at":"2025-09-19T18:44:22.808Z","repository":{"id":65997759,"uuid":"48027840","full_name":"kaelzhang/s-deviation","owner":"kaelzhang","description":"Utility to calculate standard deviation.","archived":false,"fork":false,"pushed_at":"2021-03-02T03:16:37.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-06T05:16:35.256Z","etag":null,"topics":["fintech","math","math-library","standard-deviation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaelzhang.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-12-15T07:50:54.000Z","updated_at":"2021-03-02T03:16:40.000Z","dependencies_parsed_at":"2023-06-05T20:30:46.080Z","dependency_job_id":null,"html_url":"https://github.com/kaelzhang/s-deviation","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"eee1dfed920b6f06ec0d26af4d5450ec97edf468"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fs-deviation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fs-deviation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fs-deviation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fs-deviation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaelzhang","download_url":"https://codeload.github.com/kaelzhang/s-deviation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229171621,"owners_count":18031082,"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":["fintech","math","math-library","standard-deviation"],"created_at":"2024-10-05T14:02:12.805Z","updated_at":"2025-09-19T18:44:17.787Z","avatar_url":"https://github.com/kaelzhang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/kaelzhang/s-deviation.svg?branch=master)](https://travis-ci.org/kaelzhang/s-deviation)\n[![Coverage](https://codecov.io/gh/kaelzhang/s-deviation/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/s-deviation)\n\u003c!-- optional appveyor tst\n[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/kaelzhang/s-deviation?branch=master\u0026svg=true)](https://ci.appveyor.com/project/kaelzhang/s-deviation)\n--\u003e\n\u003c!-- optional npm version\n[![NPM version](https://badge.fury.io/js/s-deviation.svg)](http://badge.fury.io/js/s-deviation)\n--\u003e\n\u003c!-- optional npm downloads\n[![npm module downloads per month](http://img.shields.io/npm/dm/s-deviation.svg)](https://www.npmjs.org/package/s-deviation)\n--\u003e\n\u003c!-- optional dependency status\n[![Dependency Status](https://david-dm.org/kaelzhang/s-deviation.svg)](https://david-dm.org/kaelzhang/s-deviation)\n--\u003e\n\n# WARNING\n\nThis module is lack of maintainance.\n\nIf you are familiar with python programming maybe you could check [**stock-pandas**](https://github.com/kaelzhang/stock-pandas) which provides powerful statistic indicators support, and is backed by [`numpy`](https://numpy.org/) and [`pandas`](https://pandas.pydata.org/).\n\nThe performance of [**stock-pandas**](https://github.com/kaelzhang/stock-pandas) is many times higher than JavaScript libraries, and can be directly used by machine learning programs.\n\n****\n\n# s-deviation\n\nMath utility to calculate [standard deviations](https://en.wikipedia.org/wiki/Standard_deviation), especially for fintech.\n\n## Install\n\n```sh\n$ npm install s-deviation\n```\n\n## Usage\n\n```js\nimport sd from 's-deviation'\n\nsd([1, 2, 4, 8], 2)         // [\u003c1 empty item\u003e, 0.5, 1, 2]\n\nsd([1, 2, 3, 4, 5, 6], 4)\n// [\n//   \u003c3 empty items\u003e,\n//   1.118033988749895,\n//   1.118033988749895,\n//   1.118033988749895\n// ]\n```\n\n## sd(datum, size)\n\n- **datum** `Array.\u003cNumber\u003e` the collection of data\n- **size** `Number` the sample size of\n\nReturns `Array.\u003cNumber\u003e` the array of standard deviations.\n\n## Related Modules\n\n- [bollinger-bands](https://www.npmjs.com/package/bollinger-bands): Fintach math utility to calculate bollinger bands.\n- [s-deviation](https://www.npmjs.com/package/s-deviation): Math utility to calculate standard deviations.\n- [moving-averages](https://www.npmjs.com/package/moving-averages): The complete collection of utility methods for [Moving average](https://en.wikipedia.org/wiki/Moving_average).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaelzhang%2Fs-deviation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaelzhang%2Fs-deviation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaelzhang%2Fs-deviation/lists"}