powered by
SpendingSpec
An R6 class generator. Use $new() to create a SpendingSpec object.
$new()
fun
Spending function (callable with signature (alpha, t, param)).
(alpha, t, param)
fun_label
Label captured from the constructor call (used for plotting).
par
Tuning specification for the spending parameter.
SpendingSpec$new()
SpendingSpec$expand()
SpendingSpec$clone()
new()
Create a new spending specification.
SpendingSpec$new(fun, par = tune_fixed(NULL))
Spending function.
Spending parameter specification.
expand()
Expand to a list of spending settings (fun + concrete parameter values).
clone()
The objects of this class are cloneable with this method.
SpendingSpec$clone(deep = FALSE)
deep
Whether to make a deep clone.
An R6 class representing a single spending function (fun) and a tuning specification for its parameter (par).
spec <- SpendingSpec$new(gsDesign::sfHSD, par = tune_seq(-4, -2, length_out = 2)) spec$expand()
Run the code above in your browser using DataLab