Learn R Programming

rerf (version 2.0.4)

RandMatContinuous: Create a Random Matrix: Continuous

Description

Create a Random Matrix: Continuous

Usage

RandMatContinuous(p, d, sparsity, catMap = NULL, ...)

Arguments

p

the number of dimensions.

d

the number of desired columns in the projection matrix.

sparsity

a real number in \((0,1)\) that specifies the distribution of non-zero elements in the random matrix.

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.

Value

A random matrix to use in running RerF.

Examples

Run this code
# NOT RUN {
p <- 8
d <- 3
sparsity <- 0.25
set.seed(4)
(a <- RandMatContinuous(p, d, sparsity))
# }

Run the code above in your browser using DataLab