[R] Random unit vectors in R^{n}

Cyril Humbert humbertc at univ-mlv.fr
Wed Aug 28 13:10:39 CEST 2002


Richards, Tom wrote:
> Hello:
> 
> 	Can you tell me if there's a simple way to generate in R random
> vectors on the unit sphere in R^{n}?  Additionally, are there references for
> this question?  Thanks in advance.
> 
> Tom

There's some references in the documentation of the gsl library
(GNU scientific library). 
See http://sources.redhat.com/gsl/ref/gsl-ref_19.html#SEC303

-- 
Cyril  
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list