powered by
This class represents a parameter whose value is obtained by evaluating a function.
CallbackParam(callback, dim = NULL, ...)# S4 method for CallbackParam value(object)
# S4 method for CallbackParam value(object)
A callback function that generates the parameter value.
The dimensions of the parameter.
Additional attribute arguments. See '>Leaf for details.
A '>CallbackParam object.
callback
dim
# NOT RUN { x <- Variable(2) fun <- function() { value(x) } y <- CallbackParam(fun, dim(x), nonneg = TRUE) get_data(y) # }
Run the code above in your browser using DataLab