Dumb stupid
This commit is contained in:
parent
9d5e75d688
commit
449c5d2523
1 changed files with 1 additions and 20 deletions
21
rank.js
21
rank.js
|
@ -10,7 +10,7 @@ function rankCalc(result, iterations = 10, main = [], domain_mode = false) {
|
||||||
|
|
||||||
let rl = Object.keys(result).length;
|
let rl = Object.keys(result).length;
|
||||||
for (let unn in result) {
|
for (let unn in result) {
|
||||||
let v = true;
|
let v = false;
|
||||||
if (domain_mode) {
|
if (domain_mode) {
|
||||||
v = false;
|
v = false;
|
||||||
try {
|
try {
|
||||||
|
@ -95,40 +95,21 @@ function rankCalc(result, iterations = 10, main = [], domain_mode = false) {
|
||||||
|
|
||||||
let ar = Object.keys(result);
|
let ar = Object.keys(result);
|
||||||
let rf = pr[una];
|
let rf = pr[una];
|
||||||
<<<<<<< HEAD
|
|
||||||
let muna = matrixe[una];
|
|
||||||
let muna2 = matrixf[una];
|
|
||||||
=======
|
|
||||||
>>>>>>> parent of 1d09b07 (matrix math speedup)
|
|
||||||
|
|
||||||
for (let unb of ar) {
|
for (let unb of ar) {
|
||||||
let prb = prold[unb];
|
let prb = prold[unb];
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
muna[unb] = 0.03;
|
|
||||||
let munb = muna2[unb];
|
|
||||||
|
|
||||||
if (prb * munb < intv || fnc[unb] == 0) {
|
|
||||||
if (isNaN(munb) || !munb) continue;
|
|
||||||
pr[una] += prb * munb;
|
|
||||||
=======
|
|
||||||
matrixe[una][unb] = 0.03;
|
matrixe[una][unb] = 0.03;
|
||||||
|
|
||||||
if (prb * matrixf[una][unb] < intv || fnc[unb] == 0) {
|
if (prb * matrixf[una][unb] < intv || fnc[unb] == 0) {
|
||||||
let mfb = matrixf[una][unb];
|
let mfb = matrixf[una][unb];
|
||||||
if (isNaN(mfb) || !mfb) continue;
|
if (isNaN(mfb) || !mfb) continue;
|
||||||
pr[una] += prb * mfb;
|
pr[una] += prb * mfb;
|
||||||
>>>>>>> parent of 1d09b07 (matrix math speedup)
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (let unc in result) {
|
for (let unc in result) {
|
||||||
<<<<<<< HEAD
|
|
||||||
let mfc = muna2[unc];
|
|
||||||
=======
|
|
||||||
let mfc = matrixf[una][unc];
|
let mfc = matrixf[una][unc];
|
||||||
>>>>>>> parent of 1d09b07 (matrix math speedup)
|
|
||||||
let mfb = matrixf[unc][unb];
|
let mfb = matrixf[unc][unb];
|
||||||
if (isNaN(mfc) || isNaN(mfb) || !mfc || !mfb) continue;
|
if (isNaN(mfc) || isNaN(mfb) || !mfc || !mfb) continue;
|
||||||
matrixe[una][unb] += mfc * mfb;
|
matrixe[una][unb] += mfc * mfb;
|
||||||
|
|
Loading…
Reference in a new issue