Description Usage Arguments Value Examples
View source: R/rSparseWeightMatrix.R
Generate sparse matrix with at least one non-zero element by rows and by columns
1 |
nrow |
An integer that is the number of rows. |
ncol |
An integer that is the number of columns. |
sparse.coeff |
A numeric in [0,1] that control the sparsity by
rows (the proportion of non-zero entries among all matrix entries).
Non-zero entries is define by |
A matrix of weights (each row sums to one).
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.