stick_breaking: Stick breaking function.

View source: R/adaptive_utils.R

stick_breakingR Documentation

Stick breaking function.

Description

Implements the stick breaking algorithm for calculating weights in the stable-var scheme.

Usage

stick_breaking(Z)

Arguments

Z

Numeric array. Input array, shape [A, K]. Must not contain NA values.

Value

Numeric array. Stick breaking weights, shape [A, K]. Must not contain NA values.

Examples

set.seed(123)
Z <- array(runif(10), dim = c(2, 5))
stick_breaking(Z)


banditsCI documentation built on April 12, 2025, 1:42 a.m.