Create a stochastically normalized matrix/vector
Usage
normalize.stochastic(obj, no_r = NULL, ...)
Arguments
- obj
matrix
(or
dgCMatrix
,
vector
) that is stochstically normalized
- no_r
Do not use R for normalization
- ...
additional params
Value
returns the normalized matrix/vector)
Examples
W <- matrix(abs(rnorm(10000)), 100, 100)
stoch.W <- normalize.stochastic(W)
#> normalizing column vectors!