Home

Awesome

cosine

NPM version Build Status Dependency Status Coverage Status Code Climate

install

npm install [--save/--save-dev] cosine
component install ramitos/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