{"name":"ml-tree-similarity","version":"0.1.0","description":"Compares two spectra using a tree similarity","main":"lib/index.js","module":"src/index.js","files":["lib","src"],"scripts":{"eslint":"eslint src","eslint-fix":"npm run eslint -- --fix","prepublish":"rollup -c","test":"run-s testonly eslint","testonly":"jest","test-travis":"jest --coverage && codecov"},"repository":{"type":"git","url":"git+https://github.com/mljs/tree-similarity.git"},"keywords":[],"author":{"name":"Miguel Asencio"},"license":"MIT","bugs":{"url":"https://github.com/mljs/tree-similarity/issues"},"homepage":"https://github.com/mljs/tree-similarity#readme","jest":{"testEnvironment":"node"},"devDependencies":{"babel-plugin-transform-es2015-modules-commonjs":"^6.24.1","codecov":"^2.3.0","eslint":"^4.1.1","eslint-config-cheminfo":"^1.8.0","eslint-plugin-no-only-tests":"^2.0.0","jest":"^20.0.4","npm-run-all":"^4.0.2","rollup":"^0.43.0"},"dependencies":{"binary-search":"^1.3.2","num-sort":"^1.0.0"},"gitHead":"4db1f55c5ed23177f90a7888c3b91d73541f7c6d","_id":"ml-tree-similarity@0.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.0.0","_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"dist":{"integrity":"sha512-y5ZWXubn8jn67+UNxiKBXaT57qEnhgKtTyAUW3BOi6b8qT2v4iPDRxA221bzV3w+/Z+U6L7oOmbITYD+UF0Fxw==","shasum":"8912413faaa8ff5e99b00bc2cec183e2da4528af","tarball":"http://registry-npm.ywwl.com/ml-tree-similarity/download/ml-tree-similarity-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtoH6RSYPlqXKb5jjmjqi4EA0qNprHn9i+IyDbMySJxAiAJrwDwo9ygHY9hOLDi18KJtqQahvNrqc7jr9R7PUZwwg=="}],"size":4025,"noattachment":false,"key":"/ml-tree-similarity/-/ml-tree-similarity-0.1.0.tgz"},"maintainers":[{"email":"maasencioh@gmail.com","name":"maasencioh"},{"email":"swrt_9950@hotmail.com","name":"jeffersonh44"},{"email":"lpatiny@gmail.com","name":"lpatiny"},{"email":"targos@live.com","name":"targos"},{"email":"kostro.d@gmail.com","name":"stropitek"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ml-tree-similarity-0.1.0.tgz_1502356659597_0.33545851870439947"},"directories":{},"readme":"# tree-similarity\n\n[![NPM version][npm-image]][npm-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\nCompares two spectra using a tree similarity.\n\n## Installation\n\n`$ npm i ml-tree-similarity`\n\n## Usage\n\n```js\nimport { createTree, treeSimilarity } from 'ml-tree-similarity';\n\nconst a = {\n  x: [1, 2, 3, 4, 5, 6, 7],\n  y: [0.3, 0.7, 4, 0.3, 0.2, 5, 0.3],\n};\nconst b = {\n  x: [1, 2, 3, 4, 5, 6, 7],\n  y: [0.3, 4, 0.7, 0.3, 5, 0.2, 0.3],\n};\n\n// create a tree\nconst options = { from: 1, to: 7 };\nconst aTree = createTree(a, options);\nconst bTree = createTree(b, options);\n\nconst ans = treeSimilarity(aTree, bTree, options);\n```\n\n## [API Documentation](https://mljs.github.io/tree-similarity/)\n\nThis algorithm was based in the following papers:\n\n- [A new method for the comparison of 1H NMR predictors based on tree-similarity of spectra](https://doi.org/10.1186/1758-2946-6-9)\n- [Fast and shift-insensitive similarity comparisons of NMR using a tree-representation of spectra](https://doi.org/10.1016/j.chemolab.2013.05.009)\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-tree-similarity.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/ml-tree-similarity\n[codecov-image]: https://img.shields.io/codecov/c/github/mljs/tree-similarity.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/mljs/tree-similarity\n[download-image]: https://img.shields.io/npm/dm/ml-tree-similarity.svg?style=flat-square\n[download-url]: https://npmjs.org/package/ml-tree-similarity\n","publish_time":1502356660545,"_cnpm_publish_time":1502356660545,"dist-tags":{"latest":"2.2.0"}}