View source: R/raptt_randproj.R
raptt.randproj | R Documentation |
Generate random matrices of given dimension which have full row and are orthogonal as defined in Srivastava et al. (2016)
raptt.randproj(nrow, ncol, seed = NULL)
nrow |
Number of rows in the random matrix to be generated (dimension of projected space) |
ncol |
Number of colums (dimension of original space) |
seed |
Set the seed to replicate the random matrix generated. Default is |
An orthogonal matrix of with nrow
rows and ncol
columns.
Srivastava, R., Li, P. and Ruppert, D. RAPTT: An Exact Two-Sample Test in High Dimensions Using Random Projections. Journal of Computational and Graphical Statistics, 25 (3), 2016.
a = raptt.randproj(nrow = 5, ncol = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.