Learn R Programming

rerf (version 2.0.4)

RandMatImagePatch: Create a Random Matrix: image-patch

Description

Create a Random Matrix: image-patch

Usage

RandMatImagePatch(p, d, ih, iw, pwMin, pwMax, ...)

Arguments

p

the number of dimensions.

d

the number of desired columns in the projection matrix.

ih

the height (px) of the image.

iw

the width (px) of the image.

pwMin

the minimum patch size to sample.

pwMax

the maximum patch size to sample.

...

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 <- 28^2
d <- 8
ih <- iw <- 28
pwMin <- 3
pwMax <- 6
paramList <- list(p = p, d = d, ih = ih, iw = iw, pwMin = pwMin, pwMax = pwMax)
set.seed(8)
(a <- do.call(RandMatImagePatch, paramList))
# }

Run the code above in your browser using DataLab