sphere.runif {Riemann} | R Documentation |
Generate Uniform Samples on Sphere
Description
It generates random samples from
. For convenient
usage of users, we provide a number of options in terms of the return type.
Usage
sphere.runif(n, p, type = c("list", "matrix", "riemdata"))
Arguments
n |
number of samples to be generated. |
p |
original dimension (of the ambient space). |
type |
return type;
|
Value
an object from one of the above by type
option.
References
Chikuse Y (2003). Statistics on Special Manifolds, volume 174 of Lecture Notes in Statistics. Springer New York, New York, NY. ISBN 978-0-387-00160-9 978-0-387-21540-2.
See Also
Examples
#-------------------------------------------------------------------
# Draw Samples on Sphere
#
# Multiple return types on S^4 in R^5
#-------------------------------------------------------------------
dat.list = sphere.runif(n=10, p=5, type="list")
dat.matx = sphere.runif(n=10, p=5, type="matrix")
dat.riem = sphere.runif(n=10, p=5, type="riemdata")
[Package Riemann version 0.1.4 Index]