powered by
Create a Random Matrix: custom
RandMatCustom(p, d, nnzSample, nnzProb, ...)
the number of dimensions.
the number of desired columns in the projection matrix.
a vector specifying the number of non-zeros to sample at each d. Each entry should be less than p.
d
p
a vector specifying probabilities in one-to-one correspondance with nnzSample.
nnzSample
used to handle superfluous arguments passed in using paramList.
A random matrix to use in running RerF.
RerF
# NOT RUN { p <- 28 d <- 8 nnzSample <- 1:8 nnzProb <- 1 / 36 * 1:8 paramList <- list(p = p, d = d, nnzSample, nnzProb) set.seed(8) (a <- do.call(RandMatCustom, paramList)) # }
Run the code above in your browser using DataLab