sketchfun: Generate sketch matrix

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/main.R

Description

Generate three types of sketch matrix

Usage

1
  sketchfun(m, n, type='ROS')

Arguments

m

a positive integer, the user-specified projection dimension.

n

a positive integer, the sample size.

type

a character, specify the type of of sketch matrix and include 'subGaussian', 'ROS' and 'subSampling', default as ROS.

Details

The argument type specify the type of of sketch matrix, where 'subGaussian' is Sub-Gaussian sketch, 'ROS' is Randomized Orthogonal System (ROS) sketch matrix, and 'subSampling' is Sub-sampling sketch matrix.

Value

return a m*n sketch matrix.

Note

nothing

Author(s)

Liu Wei

References

nothing.

See Also

nothing

Examples

1
2
  sketchfun(5,100)
  sketchfun(10, 50, type='subGaussian')

feiyoung/sKPCA documentation built on Nov. 12, 2020, 8:18 a.m.