UNPKG

ml-nearest-vector

Version:

Find the nearest point to a sample point

40 lines (16 loc) 820 B
<a name="2.0.1"></a> ## [2.0.1](https://github.com/mljs/nearest-vector/compare/v2.0.0...v2.0.1) (2018-08-15) ### Bug Fixes * add npm files ([6f2987a](https://github.com/mljs/nearest-vector/commit/6f2987a)) <a name="2.0.0"></a> # [2.0.0](https://github.com/mljs/nearest-vector/compare/v1.0.1...v2.0.0) (2018-08-15) * convert to typescript ([058976c](https://github.com/mljs/nearest-vector/commit/058976c)) ### BREAKING CHANGES * two functions are now exproted, one that returns the nearest vector's index, the other the nearest vector itself <a name="1.0.1"></a> ## [1.0.1](https://github.com/mljs/nearest-vector/compare/v1.0.0...v1.0.1) (2016-10-20) <a name="1.0.0"></a> # 1.0.0 (2016-10-06) ### Features * initial implementation ([218dc64](https://github.com/mljs/nearest-vector/commit/218dc64))