RWR | R Documentation |
This function runs a random walk with restart using two supported matrix representations.
RWR(boolSparceMat, transmat, restart, query, startvec, maxiters, thresh)
boolSparceMat |
(bool): Boolean to indicate sparce Matrix or list matrix. |
transmat |
(sparce Matrix / list matrix): transition probabilities. |
restart |
(float): probability of restart. |
query |
(vector): probability of restarting at all nodes. |
startvec |
(vector): initial probability of being at any node. |
maxiters |
(int): maximum number of allowable iterations. |
thresh |
(float): threshold for L1 norm convergence. |
list of 'iter':number of iterations, 'diff': L1 norm of difference, 'vec': converged probability distribution vector.
RWR(boolSparceMat=TRUE, transmat=transmat, restart=.3, query=c(rep(0.1,10),rep(0,5)), startvec=rep(1/15,15), maxiters=10, thresh=0.001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.