Update extramath.js

This commit is contained in:
Namhyeon Go 2022-11-06 22:05:05 +09:00 committed by GitHub
parent 2d0829b6e9
commit 25bedaf938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ function DTM() {
};
}
// Cosine similarity: https://en.wikipedia.org/wiki/Cosine_similarity
function cos(A, B) {
var dotproduct = 0;
var mA = 0;