<commit_before># Euclidean Distance [![Build Status](https://travis-ci.org/zeke/euclidean-distance.png?branch=master)](https://travis-ci.org/zeke/euclidean-distance)

euclidean-distance is a [browserify](https://github.com/substack/node-browserify#browserify)-friendly npm module
for calculating the [Euclidean distance](http://en.wikipedia.org/wiki/Euclidean_distance#Three_dimensions)

between two vectors in n-dimensional space.

<img src="http://upload.wikimedia.org/math/a/0/5/a056c1b3e4b1c72be81acf62b9e574ca.png">

## Installation

```
npm install euclidean-distance --save
```

## Usage

```js
var d = require('euclidean-distance');

d([0,0], [1,0]);
// 1

d([0,0], [3,2]);
// 3.605551275463989

d([-7,-4,3], [17, 6, 2.5]);
// 26.004807247892

d([5,13,17,3,25,21,7,1], [20,26,7,5,28,3,23,10]);
//34.17601498127012
```

## Test

```
npm test
```

## License

[WTFPL](http://wtfpl.org/)<commit_msg>fix space in example in README.md<commit_after># Euclidean Distance [![Build Status](https://travis-ci.org/zeke/euclidean-distance.png?branch=master)](https://travis-ci.org/zeke/euclidean-distance)

euclidean-distance is a [browserify](https://github.com/substack/node-browserify#browserify)-friendly npm module
for calculating the [Euclidean distance](http://en.wikipedia.org/wiki/Euclidean_distance#Three_dimensions)

between two vectors in n-dimensional space.

<img src="http://upload.wikimedia.org/math/a/0/5/a056c1b3e4b1c72be81acf62b9e574ca.png">

## Installation

```
npm install euclidean-distance --save
```

## Usage

```js
var d = require('euclidean-distance');

d([0,0], [1,0]);
// 1

d([0,0], [3,2]);
// 3.605551275463989

d([-7,-4,3], [17, 6, 2.5]);
// 26.004807247892

d([5,13,17,3,25,21,7,1], [20,26,7,5,28,3,23,10]);
// 34.17601498127012
```

## Test

```
npm test
```

## License

[WTFPL](http://wtfpl.org/)
{'fraction_non_alphanumeric': 0.2072170585019136, 'fraction_numerical': 0.11700382722799343, 'mean_word_length': 5.224489795918367, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '2688610', 'n_tokens_mistral': 894, 'n_tokens_neox': 732, 'n_words': 110}