mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 05:06:04 +00:00
Update extramath.js
This commit is contained in:
parent
2d0829b6e9
commit
25bedaf938
|
@ -27,6 +27,7 @@ function DTM() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cosine similarity: https://en.wikipedia.org/wiki/Cosine_similarity
|
||||||
function cos(A, B) {
|
function cos(A, B) {
|
||||||
var dotproduct = 0;
|
var dotproduct = 0;
|
||||||
var mA = 0;
|
var mA = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user