0.0.1 • Published 11 years ago
cosine v0.0.1
cosine
install
npm install [--save/--save-dev] cosine
component install cosine
api
var cosine = require('cosine')
var s1 = 'Julie loves me more than Linda loves me'.split(/\s/)
var s2 = 'Jane likes me more than Julie loves me or'.split(/\s/)
cosine(s1, s2) // => 0.7833494518006403
license
MIT
0.0.1
11 years ago