0.2.2 • Published 5 years ago
@robotomize/rater.js v0.2.2
rater.js
A feature that can build you a rating based on a binary classification. You can build a rating of something, knowing the number of likes and dislikes for example.
Install
npm i @robotomize/rater.js
Usage
const positive = 600,
total = 1486;
/**
* Wilson interval
*/
console.log(wilson.calc(positive, total));
0.37561016479808434
/**
* rate function
*/
console.log(wilson.rate(positive, total));
38