random_sparse_matrix {motifcluster} | R Documentation |
Build a random sparse matrix
Description
Build a sparse matrix of size m * n
with
non-zero probability p
.
Edge weights can be unweighted, constant-weighted or
Poisson-weighted.
Usage
random_sparse_matrix(m, n, p, sample_weight_type = "constant", w = 1)
Arguments
m , n |
Dimension of matrix to build is |
p |
Probability that each entry is non-zero (before weighting). |
sample_weight_type |
Type of weighting scheme. |
w |
Weight parameter. |
Value
A random sparse matrix.
[Package motifcluster version 0.2.3 Index]