https://github.com/johnpaulada/statestes
A simple Javascript library for statistical analysis. Tastefully done. You're welcome.
https://github.com/johnpaulada/statestes
javascript statestes statistical-analysis statistical-tests statistics statistics-library
Last synced: 16 days ago
JSON representation
A simple Javascript library for statistical analysis. Tastefully done. You're welcome.
- Host: GitHub
- URL: https://github.com/johnpaulada/statestes
- Owner: johnpaulada
- License: mit
- Created: 2017-07-03T14:49:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T01:20:45.000Z (over 8 years ago)
- Last Synced: 2025-09-18T19:40:27.853Z (9 months ago)
- Topics: javascript, statestes, statistical-analysis, statistical-tests, statistics, statistics-library
- Language: JavaScript
- Homepage: http://statestes-docs.surge.sh/
- Size: 166 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# statestes
> Statistics for n00bs. Tastefully done. You're welcome.
A simple Javascript library for statistical analysis
[](http://forthebadge.com)
[](http://forthebadge.com)
[](http://forthebadge.com)
[](http://forthebadge.com)
[](https://github.com/feross/standard)
## Installing / Getting started
### Install using `npm`:
```shell
npm install statestes
```
#### Import in code
```javascript
var statestes = require('statestes').statestes;
```
### Install using `yarn`:
```shell
yarn add statestes
```
#### Import in code
```javascript
var statestes = require('statestes').statestes;
```
### Install using the built library.
Copy `statestes.min.js` from `dist/statestes.min.js` to a `lib` folder.
#### Import in code
```html
```
This will expose a `statestes` variable which you can access the functions from.
### Include using CDN
```html
```
The script can also be included from a CDN for faster and likely cached delivery, it can that be used through the `statestes` variable as described below.
### Using a function in the library:
Just reference a function using the dot notation.
For example, to use the `sum` function, you can do:
```javascript
statestes.sum([1, 2, 3]); // 6
```
## Developing
### Built With
This project has no dependencies.
### Prerequisites
The dev prerequisites for this project are:
- [Babel](https://babeljs.io/) - for transpiling ES6 to ES5 code.
- [Fusebox](http://fuse-box.org/) - a faster and simpler module bundler.
- [Jest](https://facebook.github.io/jest/) - Facebook's testing framework.
### Setting up Dev
To start developing, run:
```shell
git clone https://github.com/johnpaulada/statestes.git
cd your-project/
yarn
```
This will:
1. Clone the project
2. Get you into the project
3. Install the dev dependencies
### Building
To build the project, run:
```shell
npm start
```
This command will build the code to `dist/statestes.min.js`.
Each change to the code will rebuild the code.
## Tests
I use Jest to test this library. To run the tests, run:
```shell
npm test
```
These tests test the main statistical functions.
## Licensing
MIT