Browse Source

dampingFactor inserted

master
mtzikara 6 years ago
parent
commit
457e7c4f55
  1. 2
      serial/serial_gs_pagerank_functions.c

2
serial/serial_gs_pagerank_functions.c

@ -231,7 +231,7 @@ void calculateNextPagerank(CsrSparseMatrix *transitionMatrix,
vectorNorm(*pagerankVector, vectorSize); vectorNorm(*pagerankVector, vectorSize);
for (int i=0; i<vectorSize; ++i) { for (int i=0; i<vectorSize; ++i) {
(*pagerankVector)[i] += normDifference * webUniformProbability + (*pagerankVector)[i] += dampingFactor* normDifference * webUniformProbability +
linksFromConvergedPagesPagerankVector[i] + convergedPagerankVector[i]; linksFromConvergedPagesPagerankVector[i] + convergedPagerankVector[i];
} }
} }

Loading…
Cancel
Save