Description Usage Arguments Value Examples
Samples a binary projection matrix where sparsity is distributed Poisson(λ).
1 | RandMatPoisson(p, d, lambda, catMap = NULL, ...)
|
p |
the number of dimensions. |
d |
the number of desired columns in the projection matrix. |
lambda |
passed to the |
catMap |
a list specifying specifies which one-of-K encoded columns in X correspond to the same categorical feature. |
... |
used to handle superfluous arguments passed in using paramList. |
A random matrix to use in running RerF
.
1 2 3 4 5 6 | p <- 8
d <- 8
lambda <- 0.5
paramList <- list(p = p, d = d, lambda = lambda)
set.seed(8)
(a <- do.call(RandMatPoisson, paramList))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.