-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRWR.Rd
38 lines (31 loc) · 1.11 KB
/
RWR.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DRaWR.R
\name{RWR}
\alias{RWR}
\title{RWR}
\usage{
RWR(boolSparceMat, transmat, restart, query, startvec, maxiters, thresh)
}
\arguments{
\item{boolSparceMat}{(bool): Boolean to indicate sparce Matrix or list matrix.}
\item{transmat}{(sparce Matrix / list matrix): transition probabilities.}
\item{restart}{(float): probability of restart.}
\item{query}{(vector): probability of restarting at all nodes.}
\item{startvec}{(vector): initial probability of being at any node.}
\item{maxiters}{(int): maximum number of allowable iterations.}
\item{thresh}{(float): threshold for L1 norm convergence.}
}
\value{
list of 'iter':number of iterations, 'diff': L1 norm of difference, 'vec': converged probability distribution vector.
}
\description{
This function runs a random walk with restart using two supported matrix representations.
}
\examples{
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)
}
\keyword{random}
\keyword{restart}
\keyword{walk}
\keyword{with}