View source: R/special_grassmann_runif.R
grassmann.runif | R Documentation |
It generates n random samples from Grassmann manifold Gr(k,p).
grassmann.runif(n, k, p, type = c("list", "array", "riemdata"))
n |
number of samples to be generated. |
k |
dimension of the subspace. |
p |
original dimension (of the ambient space). |
type |
return type;
|
an object from one of the above by type
option.
chikuse_statistics_2003Riemann
stiefel.runif
, wrap.grassmann
#------------------------------------------------------------------- # Draw Samples on Grassmann Manifold #------------------------------------------------------------------- # Multiple Return Types with 3 Observations of 5-dim subspaces in R^10 dat.list = grassmann.runif(n=3, k=5, p=10, type="list") dat.arr3 = grassmann.runif(n=3, k=5, p=10, type="array") dat.riem = grassmann.runif(n=3, k=5, p=10, type="riemdata")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.