Description Usage Arguments Details Value Author(s) Examples
randomBeta
generates unit length vectors (selection gradients)
uniformly distributed in a k-dimensional hypersphere.
1 | randomBeta(n = 1, k = 2)
|
n |
Number of selection gradients/vectors. |
k |
Number of dimensions. |
randomBeta
exploits the spherical symmetry of a multidimensional
Gaussian density function. Each element of each vector is randomly sampled
from a univariate Gaussian distribution with zero mean and unit variance. The
vector is then divided by its norm to standardize it to unit length.
randomBeta
returns a matrix where the vectors are stacked column
wise.
Geir H. Bolstad
1 2 | # Two vectors of dimension 3:
randomBeta(n = 2, k = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.