Description Usage Arguments Value Author(s) References Examples
Generates B2
random p
by d
matrices according to Haar measure, Gaussian or axis-aligned projections
1 | RPGenerate(p = 100, d = 10, method = "Haar", B2 = 10)
|
p |
The original data dimension |
d |
The lower dimension |
method |
Projection distribution, either |
B2 |
the number of projections |
returns B2
p
by d
random matrices as a single p
by d*B2
matrix
Timothy I. Cannings and Richard J. Samworth
Cannings, T. I. and Samworth, R. J. (2017) Random-projection ensemble classification, J. Roy. Statist. Soc., Ser. B. (with discussion), 79, 959–1035
1 2 3 4 5 6 7 | R1 <- RPGenerate(p = 20, d = 2, "Haar", B2 = 3)
t(R1)%*%R1
R2 <- RPGenerate(p = 20, d = 2, "Gaussian", B2 = 3)
t(R2)%*%R2
R3 <- RPGenerate(p = 20, d = 2, "axis", B2 = 3)
colSums(R3)
rowSums(R3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.