View source: R/adaptive_utils.R
stick_breaking | R Documentation |
Implements the stick breaking algorithm for calculating weights in the stable-var scheme.
stick_breaking(Z)
Z |
Numeric array. Input array, shape |
Numeric array. Stick breaking weights, shape [A, K]
. Must not contain NA values.
set.seed(123)
Z <- array(runif(10), dim = c(2, 5))
stick_breaking(Z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.