powered by
Samples a binary projection matrix where sparsity is distributed \(Poisson(\lambda)\).
RandMatPoisson(p, d, lambda, catMap = NULL, ...)
the number of dimensions.
the number of desired columns in the projection matrix.
passed to the rpois function for generation of non-zero elements in the random matrix.
rpois
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.
RerF
# NOT RUN { p <- 8 d <- 8 lambda <- 0.5 paramList <- list(p = p, d = d, lambda = lambda) set.seed(8) (a <- do.call(RandMatPoisson, paramList)) # }
Run the code above in your browser using DataLab