UNPKG

ml-nearest-vector

Version:

Find the nearest point to a sample point

72 lines (71 loc) 1.75 kB
{ "name": "ml-nearest-vector", "version": "2.0.1", "description": "Find the nearest point to a sample point", "main": "./lib/index.js", "module": "./lib-es6/index.js", "types": "./lib/index.d.ts", "files": [ "lib", "lib-es6" ], "scripts": { "clean": "rimraf lib lib-es6", "prepublishOnly": "npm run tsc", "test": "npm run test-only && npm run tslint", "test-only": "jest", "tsc": "npm run clean && npm run tsc-es5 && npm run tsc-es6", "tsc-es5": "tsc", "tsc-es6": "tsc --project tsconfig.es6.json", "tslint": "tslint --project tsconfig.base.json", "tslint-fix": "npm run tslint -- --fix" }, "jest": { "testEnvironment": "node", "transform": { "^.+\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] }, "repository": { "type": "git", "url": "https://github.com/mljs/nearest-vector.git" }, "keywords": [ "machine", "learning", "data", "mining", "datamining", "nearest", "vector", "cluster" ], "author": "Miguel Asencio <maasencioh@gmail.com> (https://github.com/maasencioh)", "license": "MIT", "bugs": { "url": "https://github.com/mljs/nearest-vector/issues" }, "tonicExampleFilename": "./tonic.js", "homepage": "https://github.com/mljs/nearest-vector#readme", "devDependencies": { "@types/jest": "^23.3.1", "jest": "^23.5.0", "rimraf": "^2.6.2", "ts-jest": "^23.1.3", "tslint": "^5.11.0", "tslint-config-prettier": "^1.14.0", "typescript": "^3.0.1" }, "dependencies": { "ml-distance-euclidean": "^2.0.0" } }