{"_id":"ml-nearest-vector","_rev":"23-5ef6227f6ba15518a30de8ba5a1bde39","name":"ml-nearest-vector","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"ml-nearest-vector","version":"1.0.0","keywords":["machine","learning","data","mining","datamining","nearest","vector","cluster"],"author":{"url":"https://github.com/maasencioh","name":"Miguel Asencio","email":"maasencioh@gmail.com"},"license":"MIT","_id":"ml-nearest-vector@1.0.0","maintainers":[{"name":"maasencioh","email":"maasencioh@gmail.com"}],"homepage":"https://github.com/mljs/nearest-vector#readme","bugs":{"url":"https://github.com/mljs/nearest-vector/issues"},"dist":{"shasum":"690216ac5ce8bcc4c850a0e77f490010aa0f82eb","tarball":"https://registry.npmjs.org/ml-nearest-vector/-/ml-nearest-vector-1.0.0.tgz","integrity":"sha512-bFKvDOXmqlYtb8NCBLF1DB7Vu30lM6rrY2nwHRsBQKBjHJlngb/gTcBl1XtK5/exLkIaAwWVep64ne7YSpWGGg==","signatures":[{"sig":"MEQCIF/GOvGLdvjwuQUGBbilABKUifiPcIjhi4kHGB8omS0ZAiAXrPKDisPgf94w7j9cAUjUPyPouTlU/JkhfNILi/364Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./src/index.js","_from":".","files":["src"],"_shasum":"690216ac5ce8bcc4c850a0e77f490010aa0f82eb","gitHead":"45e7ec95dbbbe4d77b3c6ed85ecf2bb7f40007a1","scripts":{"test":"npm run test-mocha && npm run eslint","eslint":"eslint src test","test-cov":"istanbul cover node_modules/.bin/_mocha -- --require should --reporter dot --recursive","eslint-fix":"npm run eslint -- --fix","test-mocha":"mocha --require should --reporter mocha-better-spec-reporter","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --require should --reporter dot --recursive"},"_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"repository":{"url":"git+https://github.com/mljs/nearest-vector.git","type":"git"},"_npmVersion":"3.10.3","description":"Find the nearest point to a sample point","directories":{},"_nodeVersion":"6.6.0","dependencies":{"ml-distance-euclidean":"^1.0.0"},"devDependencies":{"mocha":"^3.0.2","eslint":"^3.4.0","should":"^11.1.0","istanbul":"^0.4.4","eslint-config-cheminfo":"^1.2.0","mocha-better-spec-reporter":"^3.0.2","eslint-plugin-no-only-tests":"^1.1.0"},"tonicExampleFilename":"./tonic.js","_npmOperationalInternal":{"tmp":"tmp/ml-nearest-vector-1.0.0.tgz_1475762878678_0.5196595501620322","host":"packages-16-east.internal.npmjs.com"}},"1.0.1":{"name":"ml-nearest-vector","version":"1.0.1","keywords":["machine","learning","data","mining","datamining","nearest","vector","cluster"],"author":{"url":"https://github.com/maasencioh","name":"Miguel Asencio","email":"maasencioh@gmail.com"},"license":"MIT","_id":"ml-nearest-vector@1.0.1","maintainers":[{"name":"andcastillo","email":"andcastillo@gmail.com"},{"name":"jeffersonh44","email":"swrt_9950@hotmail.com"},{"name":"lpatiny","email":"lpatiny@gmail.com"},{"name":"maasencioh","email":"maasencioh@gmail.com"},{"name":"ml-bot","email":"admin@cheminfo.org"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos@live.com"}],"homepage":"https://github.com/mljs/nearest-vector#readme","bugs":{"url":"https://github.com/mljs/nearest-vector/issues"},"dist":{"shasum":"8a6d00177a1f20ab0cdfcc672a9dea3dd995c880","tarball":"https://registry.npmjs.org/ml-nearest-vector/-/ml-nearest-vector-1.0.1.tgz","integrity":"sha512-sAosnawjtNfGJYmi6iB+7uOBYv1W4OC9dibw6YZUsUOicBiTIHuJ2TI5bSuZ7aeGE9F+gOl8OhI0wJ4PEX+Lhg==","signatures":[{"sig":"MEUCIDx2/p5Vpaz2eg8NzB6UhUBM7/YboEWTKeJiBo6OoKpYAiEA7FgBpMAykImwDZpE0zEvp/jflfukG1WjzBDkSpQ2Z6A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./src/index.js","_from":".","files":["src","tonic.js"],"_shasum":"8a6d00177a1f20ab0cdfcc672a9dea3dd995c880","gitHead":"ffcd1f94ac9187cb8279d085838e84139c0f8754","scripts":{"test":"npm run test-mocha && npm run eslint","eslint":"eslint src test","test-cov":"istanbul cover node_modules/.bin/_mocha -- --require should --reporter dot --recursive","eslint-fix":"npm run eslint -- --fix","test-mocha":"mocha --require should --reporter mocha-better-spec-reporter","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --require should --reporter dot --recursive"},"_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"repository":{"url":"git+https://github.com/mljs/nearest-vector.git","type":"git"},"_npmVersion":"3.10.3","description":"Find the nearest point to a sample point","directories":{},"_nodeVersion":"6.6.0","dependencies":{"ml-distance-euclidean":"^1.0.0"},"devDependencies":{"mocha":"^3.0.2","eslint":"^3.4.0","should":"^11.1.0","istanbul":"^0.4.4","eslint-config-cheminfo":"^1.2.0","mocha-better-spec-reporter":"^3.0.2","eslint-plugin-no-only-tests":"^1.1.0"},"tonicExampleFilename":"./tonic.js","_npmOperationalInternal":{"tmp":"tmp/ml-nearest-vector-1.0.1.tgz_1476968562933_0.28498234786093235","host":"packages-12-west.internal.npmjs.com"}},"2.0.0":{"name":"ml-nearest-vector","version":"2.0.0","keywords":["machine","learning","data","mining","datamining","nearest","vector","cluster"],"author":{"url":"https://github.com/maasencioh","name":"Miguel Asencio","email":"maasencioh@gmail.com"},"license":"MIT","_id":"ml-nearest-vector@2.0.0","maintainers":[{"name":"andcastillo","email":"andcastillo@gmail.com"},{"name":"jeffersonh44","email":"swrt_9950@hotmail.com"},{"name":"lpatiny","email":"lpatiny@gmail.com"},{"name":"maasencioh","email":"maasencioh@gmail.com"},{"name":"ml-bot","email":"admin@cheminfo.org"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos@live.com"}],"homepage":"https://github.com/mljs/nearest-vector#readme","bugs":{"url":"https://github.com/mljs/nearest-vector/issues"},"dist":{"shasum":"d7818eeaf7de80dc9bb71313b11a794385f96eb3","tarball":"https://registry.npmjs.org/ml-nearest-vector/-/ml-nearest-vector-2.0.0.tgz","fileCount":6,"integrity":"sha512-Nf2wUa7Vv7AvxSk6A6wG/STn4CIcHsuM1A4VikhZwgRJNIpzsJA0CppFb2Gw6GAV/FE4dY/QonOi+RTrgJleJw==","signatures":[{"sig":"MEUCIQCUDvt4KZMfBspngFxbYjFaByr06aiq+Oxm92ZWCaljQQIgMwreHt605ks1QpLSYTnrq/n7nRHtS5QOMNE37w9EhT0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdFQcCRA9TVsSAnZWagAABX4P/jPwscV4qHSIZfT1gTpA\nTPIq2T85DKcGfHkksupT+2GSgr54sMfXN0K3dhoXA/tfwNfl+yLyKrQ2wIIZ\nQo3Cyyal3ZztExs/g2SstqDRa/WuUW8NQbCLRMMBkxONAtQX5INY+lWW1phF\nYfbLFZfs4GXpt+xv5qhSpnzKyYx7urwv3vAE2yHqZMpHLSPCiAnqFL+uTwdn\nSdFR/+cXIMbrEn0BFy4mxhpUPxQikQkPydmjIKtB6fsmml8ymIhO1qDVjOmZ\n5w7T9bD40qRwj4zoxtIvlK+D435kCaHzLmALrJbTOTa197kepZbXcckK9Zi4\n84QA5zRFEfhm7ZNUNPg6UzMYrI2Kcjm700rpeb3DH3EmvlyleUpN+inSnuT4\nZXXoGtJNW3uJPmMrHv4lzBkz2G02TtIaTSHubGx1x7dBoWrpDjXMHOwXiv73\nKOfp+WtzzwgDDeOkFA2e7Fvr+NulEezD2Orpt3hMfBBmhzl5A7lR6GcSQd2Z\nYlFH0wArHTr+3WMhmvkTvagsVqs66Tjwa70ojpjAhIqzqlt6HFJVzMsZsi70\n+62jVHxkplXZcT+w6+oHJnZ4dxzA68d/XQTKeP+2+ZVBUwk9389ArxitcCqe\ncR8lh90eI8zfrhI3vo3rz8dfgrhxHq9dKLOOp/uQpq9/5kZqee/p2WJI72li\nZVrR\r\n=DZGY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"./src/index.js","files":["src","tonic.js"],"gitHead":"351ab11c193870bab125fad4620deaa8e4b39e4b","scripts":{"tsc":"npm run clean && npm run tsc-es5 && npm run tsc-es6","test":"npm run test-only && npm run tslint","clean":"rimraf lib lib-es6","tslint":"tslint --project tsconfig.base.json","tsc-es5":"tsc","tsc-es6":"tsc --project tsconfig.es6.json","test-only":"jest","tslint-fix":"npm run tslint -- --fix","prepublishOnly":"npm run tsc"},"_npmUser":{"name":"stropitek","email":"kostro.d@gmail.com"},"repository":{"url":"git+https://github.com/mljs/nearest-vector.git","type":"git"},"_npmVersion":"6.2.0","description":"Find the nearest point to a sample point","directories":{},"_nodeVersion":"10.5.0","dependencies":{"ml-distance-euclidean":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.5.0","rimraf":"^2.6.2","tslint":"^5.11.0","ts-jest":"^23.1.3","typescript":"^3.0.1","@types/jest":"^23.3.1","tslint-config-prettier":"^1.14.0"},"tonicExampleFilename":"./tonic.js","_npmOperationalInternal":{"tmp":"tmp/ml-nearest-vector_2.0.0_1534350364604_0.4146924554589295","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"ml-nearest-vector","version":"2.0.1","keywords":["machine","learning","data","mining","datamining","nearest","vector","cluster"],"author":{"url":"https://github.com/maasencioh","name":"Miguel Asencio","email":"maasencioh@gmail.com"},"license":"MIT","_id":"ml-nearest-vector@2.0.1","maintainers":[{"name":"andcastillo","email":"andcastillo@gmail.com"},{"name":"jeffersonh44","email":"swrt_9950@hotmail.com"},{"name":"lpatiny","email":"lpatiny@gmail.com"},{"name":"maasencioh","email":"maasencioh@gmail.com"},{"name":"ml-bot","email":"admin@cheminfo.org"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos@live.com"}],"homepage":"https://github.com/mljs/nearest-vector#readme","bugs":{"url":"https://github.com/mljs/nearest-vector/issues"},"dist":{"shasum":"fa9dae2e39e9abe2a2a53a3404f0fe077803d240","tarball":"https://registry.npmjs.org/ml-nearest-vector/-/ml-nearest-vector-2.0.1.tgz","fileCount":7,"integrity":"sha512-gMPwNm3eed59ewJYiCK/+wElWBfNoD6JizH965ePiQgCo0pvQL63w4YdZhLs5eUV0iWcq6brVMUBL6iMySHnqg==","signatures":[{"sig":"MEUCIE5jVLLebrKlT1IPDSNuJXeYVdXDafOswOcABphOpHaZAiEA1wNFSuUQf+Q7gC+10tZONbZaOVwaBEJ6/l2fEPJWrd0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8734,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdFVqCRA9TVsSAnZWagAAUOcQAI3r+6os4qypT8LGSYy1\n6doPuXDBkXC7i9xLG+zGF788gw9pl8XTU0/JfIY7lDx7DWCpTvN/3Gqos+Gv\ntRk1sKhx0r5B+gJO58ZHI7U0qNEphIDDlYmPnF7NO1lOMkOiaD4TVfHRZ32T\n8/N/mAvrTQcdMeGgxHeB0VNDPpi7phmIRBI39amuaYeRIwnEWZtZFKE+X0zl\n8AQHpzfoarWq9QyV6TMBtzzPC3+aZ2TB8JMRCJGa1GSPLgP2Lxru4mB1czuC\nqL430GPCTwmLyrJsUMGovxND5Qdg2qvEnFSPUZzgxbk3GMp7gcRs0sUHZgHl\nEw0pilSOocGAzdnAFcZpo4C6tnGPFDfkJZ45UfAIL02CYhOGVGk2Gzu4VKei\n4aMCYakVa8Nc8IWU++NjBakovGFyXtcihQXcn0hZQwJFeQrau+6f9NyUTWXY\nIq9V5jkHMwFzkSLl0kvrhidnjDUNvwqbT4/IeBd39UaQKPeRQMxBeHhnZRBJ\ne6aIvVuZjtnQblcH4Bo5iFdDB2lPY1p3+4mQK4QsQvbe3YtXjVub9w5UKccT\nlTzShHmS00JsLzHQJF7ZGxK+qOyF4ykbTQ8uMw5HeD+v/bfuvRqUVHvLyIcP\nb+h14KVE5VYkBDtiqGNmBCjyHE4f4k+0kydpY0xS9RAmW0Oinr4QPlF5IujD\nlX33\r\n=QkhN\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"./lib/index.js","files":["lib","lib-es6"],"types":"./lib/index.d.ts","module":"./lib-es6/index.js","gitHead":"06904825b3101c5e9f9d35dd9bbae3a518ff9be2","scripts":{"tsc":"npm run clean && npm run tsc-es5 && npm run tsc-es6","test":"npm run test-only && npm run tslint","clean":"rimraf lib lib-es6","tslint":"tslint --project tsconfig.base.json","tsc-es5":"tsc","tsc-es6":"tsc --project tsconfig.es6.json","test-only":"jest","tslint-fix":"npm run tslint -- --fix","prepublishOnly":"npm run tsc"},"_npmUser":{"name":"stropitek","email":"kostro.d@gmail.com"},"repository":{"url":"git+https://github.com/mljs/nearest-vector.git","type":"git"},"_npmVersion":"6.2.0","description":"Find the nearest point to a sample point","directories":{},"_nodeVersion":"10.5.0","dependencies":{"ml-distance-euclidean":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.5.0","rimraf":"^2.6.2","tslint":"^5.11.0","ts-jest":"^23.1.3","typescript":"^3.0.1","@types/jest":"^23.3.1","tslint-config-prettier":"^1.14.0"},"tonicExampleFilename":"./tonic.js","_npmOperationalInternal":{"tmp":"tmp/ml-nearest-vector_2.0.1_1534350698653_0.12679851188488866","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"ml-nearest-vector","version":"3.0.0","keywords":["machine","learning","data","mining","datamining","nearest","vector","cluster"],"author":{"url":"https://github.com/maasencioh","name":"Miguel Asencio","email":"maasencioh@gmail.com"},"license":"MIT","_id":"ml-nearest-vector@3.0.0","maintainers":[{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"npm@secmail.targos.dev"},{"name":"lpatiny","email":"luc@patiny.com"},{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"},{"name":"maasencioh","email":"maasencioh@gmail.com"},{"name":"jeffersonh44","email":"jeffersonh44@gmail.com"},{"name":"andcastillo","email":"andcastillo@gmail.com"}],"homepage":"https://github.com/mljs/nearest-vector#readme","bugs":{"url":"https://github.com/mljs/nearest-vector/issues"},"dist":{"shasum":"42e23980f954979b8b534cd663e34bedf12060d1","tarball":"https://registry.npmjs.org/ml-nearest-vector/-/ml-nearest-vector-3.0.0.tgz","fileCount":8,"integrity":"sha512-UobIWT4sciX+yyF/+FpV4sifA5kxgHM5SzFHGPe12IlWGeqc0x2D/OrS1NGnnWWLgcGi2yYfxP0CmrNLtSWOmA==","signatures":[{"sig":"MEQCIDP0p2S2Y+7C3UNm6LcxjuFPWNr/sSLVwiguA4vPPhfmAiBh2zWLPRfZ1Vy2SFyNornJxry2+Ny17y77SvaHe5bPOQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9672},"type":"module","exports":{".":"./lib/index.js"},"gitHead":"4fef14cb28bf3bffd8423dbda36193145347065f","scripts":{"tsc":"npm run clean && npm run tsc-build","test":"npm run test-only && npm run eslint && npm run prettier && npm run check-types && npm run verify-build","clean":"rimraf lib","eslint":"eslint src","prepack":"npm run tsc","prettier":"prettier --check src","test-only":"vitest run --coverage","tsc-build":"tsc --project tsconfig.build.json","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","verify-build":"npm run tsc && node lib/index.js","prettier-write":"prettier --write src"},"_npmUser":{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"},"repository":{"url":"git+https://github.com/mljs/nearest-vector.git","type":"git"},"_npmVersion":"11.6.2","description":"Find the nearest point to a sample point","directories":{},"_nodeVersion":"24.11.1","dependencies":{"ml-distance-euclidean":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.0","vitest":"^4.0.8","prettier":"^3.6.2","typescript":"^5.9.3","@types/node":"^24.10.1","@zakodium/tsconfig":"^1.0.2","@vitest/coverage-v8":"^4.0.8","eslint-config-cheminfo-typescript":"^21.0.1"},"_npmOperationalInternal":{"tmp":"tmp/ml-nearest-vector_3.0.0_1763098538845_0.41143483076153387","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"ml-nearest-vector","version":"3.0.1","description":"Find the nearest point to a sample point","type":"module","exports":{".":"./lib/index.js"},"scripts":{"check-types":"tsc --noEmit","clean":"rimraf lib","eslint":"eslint src","eslint-fix":"npm run eslint -- --fix","prepack":"npm run tsc","prettier":"prettier --check src","prettier-write":"prettier --write src","test":"npm run test-only && npm run eslint && npm run prettier && npm run check-types && npm run verify-build","test-only":"vitest run --coverage","tsc":"npm run clean && npm run tsc-build","tsc-build":"tsc --project tsconfig.build.json","verify-build":"npm run tsc && node lib/index.js"},"repository":{"type":"git","url":"git+https://github.com/mljs/nearest-vector.git"},"keywords":["machine","learning","data","mining","datamining","nearest","vector","cluster"],"author":{"name":"Miguel Asencio","email":"maasencioh@gmail.com","url":"https://github.com/maasencioh"},"license":"MIT","bugs":{"url":"https://github.com/mljs/nearest-vector/issues"},"homepage":"https://github.com/mljs/nearest-vector#readme","dependencies":{"ml-distance-euclidean":"^3.0.0"},"devDependencies":{"@types/node":"^24.10.1","@vitest/coverage-v8":"^4.0.8","@zakodium/tsconfig":"^1.0.2","eslint-config-cheminfo-typescript":"^21.0.1","prettier":"^3.6.2","rimraf":"^6.1.0","typescript":"^5.9.3","vitest":"^4.0.8"},"gitHead":"5de406cc62b5e85e7e1797b9598729d02a76a4e1","_id":"ml-nearest-vector@3.0.1","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-7UQ60sPS1Dpe6N6zuEsaL3nrUGHkaiSmjWcQHfMYFfV1dgp6TiPtv3ZtdLHwpf1jS0KQDSkw9pycJO1gYBiEoA==","shasum":"dffaf5263fa34d5fde697a3d82f76d0f533e0183","tarball":"https://registry.npmjs.org/ml-nearest-vector/-/ml-nearest-vector-3.0.1.tgz","fileCount":8,"unpackedSize":9374,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGXSGJ9994rJ47pn4Metf9fyXirHHIhJCl0OY4g8R9yqAiAykw0X36+UYPR7b209R6z3UaM03yrfV5XvQlrqFz9n0w=="}]},"_npmUser":{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"},"directories":{},"maintainers":[{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"npm@secmail.targos.dev"},{"name":"lpatiny","email":"luc@patiny.com"},{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"},{"name":"maasencioh","email":"maasencioh@gmail.com"},{"name":"jeffersonh44","email":"jeffersonh44@gmail.com"},{"name":"andcastillo","email":"andcastillo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ml-nearest-vector_3.0.1_1763101982994_0.02357546283383205"},"_hasShrinkwrap":false}},"time":{"created":"2016-10-06T14:08:01.029Z","modified":"2025-11-14T06:33:03.397Z","1.0.0":"2016-10-06T14:08:01.029Z","1.0.1":"2016-10-20T13:02:44.803Z","2.0.0":"2018-08-15T16:26:04.681Z","2.0.1":"2018-08-15T16:31:38.747Z","3.0.0":"2025-11-14T05:35:39.176Z","3.0.1":"2025-11-14T06:33:03.170Z"},"bugs":{"url":"https://github.com/mljs/nearest-vector/issues"},"author":{"name":"Miguel Asencio","email":"maasencioh@gmail.com","url":"https://github.com/maasencioh"},"license":"MIT","homepage":"https://github.com/mljs/nearest-vector#readme","keywords":["machine","learning","data","mining","datamining","nearest","vector","cluster"],"repository":{"type":"git","url":"git+https://github.com/mljs/nearest-vector.git"},"description":"Find the nearest point to a sample point","maintainers":[{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"npm@secmail.targos.dev"},{"name":"lpatiny","email":"luc@patiny.com"},{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"},{"name":"maasencioh","email":"maasencioh@gmail.com"},{"name":"jeffersonh44","email":"jeffersonh44@gmail.com"},{"name":"andcastillo","email":"andcastillo@gmail.com"}],"readme":"# ml-nearest-vector\n\n[![NPM version](https://img.shields.io/npm/v/ml-nearest-vector.svg)](https://www.npmjs.com/package/ml-nearest-vector)\n[![npm download](https://img.shields.io/npm/dm/ml-nearest-vector.svg)](https://www.npmjs.com/package/ml-nearest-vector)\n[![test coverage](https://img.shields.io/codecov/c/github/mljs/spectra-processing.svg)](https://codecov.io/gh/mljs/spectra-processing)\n[![license](https://img.shields.io/npm/l/ml-nearest-vector.svg)](https://github.com/mljs/spectra-processing/blob/main/LICENSE)\n\n> Find the nearest point to a sample point\n\n## Installation\n\n```\n$ npm install ml-nearest-vector\n```\n\n## [API Documentation](https://mljs.github.io/nearest-vector/)\n\n## Example\n\n```js\nimport nearestVector, {findNearestVector} from 'ml-nearest-vector');\n\nconst nearestVector = require('ml-nearest-vector');\n\nlet centers = [[1, 2, 1], [-1, -1, -1]];\n// returns the index of the nearest vector\nnearestVector(centers, [1, 2, 1]) === 0;\n\n// returns the nearest vector itself\nfindNearstVector(centers, [1, 2, 1]); // [1, 2, 1]\n```\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}