tweak
This commit is contained in:
parent
47af930e18
commit
e1bb10ff8a
12 changed files with 1336 additions and 526 deletions
5
scoring.js
Normal file
5
scoring.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export function weightedScore(terms) {
|
||||
let total = 0;
|
||||
for (const [value, weight] of terms) total += value * weight;
|
||||
return total;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue