{"id":18287071,"url":"https://github.com/handsontable/jstat","last_synced_at":"2025-04-05T08:31:33.649Z","repository":{"id":57115073,"uuid":"182214072","full_name":"handsontable/jstat","owner":"handsontable","description":"JavaScript Statistical Library","archived":false,"fork":false,"pushed_at":"2019-04-19T10:09:49.000Z","size":5154,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"develop","last_synced_at":"2025-03-21T00:51:09.429Z","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/handsontable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-19T06:30:35.000Z","updated_at":"2023-03-09T11:16:48.000Z","dependencies_parsed_at":"2022-08-22T11:41:08.491Z","dependency_job_id":null,"html_url":"https://github.com/handsontable/jstat","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/handsontable%2Fjstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handsontable%2Fjstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handsontable%2Fjstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handsontable%2Fjstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/handsontable","download_url":"https://codeload.github.com/handsontable/jstat/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247311622,"owners_count":20918336,"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-11-05T13:24:15.025Z","updated_at":"2025-04-05T08:31:33.589Z","avatar_url":"https://github.com/handsontable.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**@handsontable/jstat** - JavaScript Statistical Library\n===============================================================\n\n**jStat** provides native javascript implementations of statistical functions.\nFull details are available in the [docs](http://handsontable.github.io/jstat/).\njStat provides more functions than most libraries, including the weibull, cauchy, poisson, hypergeometric, and beta distributions.\nFor most distributions, jStat provides the pdf, cdf, inverse, mean, mode, variance, and a sample function, allowing for more complex calculations.\n\n[![npm version](https://img.shields.io/npm/v/@handsontable/jstat.svg)](https://www.npmjs.com/package/@handsontable/jstat)\n\n## Table of contents\n\n\n 1. [Installation](#installation)\n 2. [Getting Started](#getting-started)\n 3. [Building jStat](#building-jstat)\n 4. [Running Tests](#Running-tests)\n 5. [Get the Code](#get-the-code)\n 6. [Contributing](#contributing)\n 7. [Licensing](#licensing)\n\n## Installation\nUse npm to download the project.\n```\nnpm install @handsontable/jstat\n```\n\n## Getting Started\n\njStat can be used in the browser. The `jStat` object will be added to the window. For example:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@handsontable/jstat/dist/jstat.min.js\"\u003e\u003c/script\u003e \u003c!-- include jStat, from the CDN or otherwise --\u003e\n\u003cscript\u003e\nvar jstat = this.jStat(dataset); // jStat will be added to the window\n\ndata[i]['cum'] = jstat.normal(jstat.mean(), jstat.stdev()).cdf(data[i].x);\n\u003c/script\u003e\n\n```\n\nUsing jStat in Node environment.\n\n```js\nconst jStat = require('@handsontable/jstat');\n\ndata[i]['cum'] = jStat.normal(jStat.mean(), jStat.stdev()).cdf(data[i].x);\n```\n\n## Building jStat\n\nFirst, clone a copy of the jStat git repo by running `git clone https://github.com/handsontable/jstat.git`.\n\nTo download all necessary dependencies run `npm install` in the cloned repository.\n\nThen, to get a complete, minified version of jStat and all documentation, simply type `npm run all`.\n\nThe built version of jStat will be put in the `dist/` subdirectory.\n\nGenerate just the documentation by running `npm run doc`. Documentation will be placed in `dist/docs` by default.\n\nTo remove all built files, run `npm run clean`.\n\n## Running Tests\n\nExecute all tests by running `npm run test`.\n\nOr if you wish to run a specific test, `cd` to `test/\u003csubdir\u003e` and run `node \u003csome_test\u003e-test.js`.\n\n## Get the Code\n\nBoth the minified and unminified source are located in the `dist/` directory. For those who don't want to build\nit themselves.\n\n## Contributing\nIf you would like to help us to develop this library, please first read the [guide for contributors](//github.com/handsontable/jstat/blob/master/CONTRIBUTING.md).\n\n## Licensing\nThis library is released under the MIT license.\nThe project is based on the great work of [jStat](https://github.com/jstat/jstat).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandsontable%2Fjstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhandsontable%2Fjstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandsontable%2Fjstat/lists"}