sampleLeafVarianceOneIteration | R Documentation |
Sample one iteration of the leaf parameter variance model (only for univariate basis and constant leaf!)
sampleLeafVarianceOneIteration(forest, rng, a, b)
forest |
C++ forest |
rng |
C++ random number generator |
a |
Leaf variance shape parameter |
b |
Leaf variance scale parameter |
None
num_trees <- 100
leaf_dimension <- 1
is_leaf_constant <- TRUE
is_exponentiated <- FALSE
active_forest <- createForest(num_trees, leaf_dimension, is_leaf_constant, is_exponentiated)
rng <- createCppRNG(1234)
a <- 1.0
b <- 1.0
tau <- sampleLeafVarianceOneIteration(active_forest, rng, a, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.