<commit_before>erf
===
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependencies][dependencies-image]][dependencies-url]

> Computes the [error function](https://en.wikipedia.org/wiki/Error_function).

The [error function](https://en.wikipedia.org/wiki/Error_function) is defined as

<div class="equation" align="center" data-raw-text="
    \operatorname{erf}(x) = \frac{2}{\sqrt\pi}\int_0^x e^{-t^2}\,\mathrm dt." data-equation="eq:error_function">
	<img src="https://cdn.rawgit.com/compute-io/erf/2722987b7d30b1bdf0b1f03e835ecad80d9cce82/docs/img/eqn.svg" alt="Equation of the error function.">
	<br>
</div>


## Installation

``` bash
$ npm install compute-erf
```

For use in the browser, use [browserify](https://github.com/substack/node-browserify).


## Usage

``` javascript
var erf = require( 'compute-erf' );
```


#### erf( x[, options] )

Evaluates the [error function](http://en.wikipedia.org/wiki/Error_function) (element-wise). `x` may be either a [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number), an [`array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), a [`typed array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays), or a [`matrix`](https://github.com/dstructs/matrix). Values may include `NaN`, `+infinity`, and `-infinity`.

``` javascript<commit_msg>[HOTFIX] remove extraneous return.<commit_after>erf
===
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependencies][dependencies-image]][dependencies-url]

> Computes the [error function](https://en.wikipedia.org/wiki/Error_function).

The [error function](https://en.wikipedia.org/wiki/Error_function) is defined as

<div class="equation" align="center" data-raw-text="\operatorname{erf}(x) = \frac{2}{\sqrt\pi}\int_0^x e^{-t^2}\,\mathrm dt." data-equation="eq:error_function">
	<img src="https://cdn.rawgit.com/compute-io/erf/2722987b7d30b1bdf0b1f03e835ecad80d9cce82/docs/img/eqn.svg" alt="Equation of the error function.">
	<br>
</div>


## Installation

``` bash
$ npm install compute-erf
```

For use in the browser, use [browserify](https://github.com/substack/node-browserify).


## Usage

``` javascript
var erf = require( 'compute-erf' );
```


#### erf( x[, options] )

Evaluates the [error function](http://en.wikipedia.org/wiki/Error_function) (element-wise). `x` may be either a [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number), an [`array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), a [`typed array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays), or a [`matrix`](https://github.com/dstructs/matrix). Values may include `NaN`, `+infinity`, and `-infinity`.

``` javascript
{'fraction_non_alphanumeric': 0.19684775318578135, 'fraction_numerical': 0.017437961099932932, 'mean_word_length': 5.658482142857143, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6658006', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1014, 'n_words': 169}