# binomjs

> Binomial distribution library for Node.js

Latest version **0.1.1** (published 2014-11-03) · 0 weekly downloads

## Install

```sh
npm install binomjs
pnpm add binomjs
yarn add binomjs
bun add binomjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-11-03 |
| First published | 2014-11-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | thi |

## Links

- npm: https://www.npmjs.com/package/binomjs
- Repository: https://github.com/thii/binomjs
- Issues: https://github.com/thii/binomjs/issues
- npm.io page: https://npm.io/package/binomjs

## Dependencies (1)

- [confidencejs](https://npm.io/package/confidencejs.md) >= 1.2.0

## Recent versions

- 0.1.1 (latest) — 2014-11-03
- 0.1.0 — 2014-11-02

## README

# binomjs [![CI Status](http://img.shields.io/travis/thii/binomjs.svg?style=flat)](https://travis-ci.org/thii/binomjs)

A binomial distribution testing library in JavaScript.

## Installation

- As a Node.js module

```
npm install binomjs
```

- As a component

```
component install thii/binomjs
```

## Building component

- Prerequisites: `uglify-js`

```
npm install uglify-js -g
```

- Building

```shell
component build -n binom
uglifyjs build/binom.js -o build/binom.min.js
```
The built version of binomjs will be put in the `build/` subdirectory.

## Example

```javascript
var Binom = require('binomjs');
var binom = new Binom();

// binom.test(trialsNum, successesNum, hypothesisTrialsNum, hypothesisSuccessesNum, confidenceRate)
var result = binom.test(1000, 100, 1000, 50, 0.95);
/*
{ averageSuccessRate: 0.1,
  minSuccessRate: 0.0814,
  maxSuccessRate: 0.1186,
  pValue: 0.024997895303140116,
  testResult: true,
  error: undefined }
*/

```

## Running Tests

```
npm test
```

## License
[MIT](http://thi.mit-license.org/)

---
_Source: https://npm.io/package/binomjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
