View source: R/adaptive_utils.R
twopoint_stable_var_ratio | R Documentation |
Calculates the allocation ratio for a two-point stable-variance bandit, given the empirical mean and the discount parameter alpha.
twopoint_stable_var_ratio(A, e, alpha)
A |
Integer. Size of the experiment. Must be a positive integer. |
e |
Numeric. Empirical mean. Must be a numeric value. |
alpha |
Numeric. Discount parameter. |
Numeric vector. Allocation ratio lambda.
# Calculate the allocation ratio for a two-point stable-variance bandit with e=0.1 and alpha=0.5
twopoint_stable_var_ratio(1000, 0.1, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.