RandMatCustom: Create a Random Matrix: custom

Description Usage Arguments Value Examples

View source: R/RandMat.R

Description

Create a Random Matrix: custom

Usage

1
RandMatCustom(p, d, nnzSample, nnzProb, ...)

Arguments

p

the number of dimensions.

d

the number of desired columns in the projection matrix.

nnzSample

a vector specifying the number of non-zeros to sample at each d. Each entry should be less than p.

nnzProb

a vector specifying probabilities in one-to-one correspondance with nnzSample.

...

used to handle superfluous arguments passed in using paramList.

Value

A random matrix to use in running RerF.

Examples

1
2
3
4
5
6
7
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))

rerf documentation built on May 2, 2019, 8:16 a.m.