powered by
Return a piecewise constant (step) majorizer for K-Lipschitz functions over an interval.
get_step_majorizer(fun, breaks, is_monotone = TRUE, K = 0)
A vector of length M with the values of the piecewise constant majorizer
M
A function object with a single argument x
x
(vector) The set of M+1 boundaries for the M subintervals in x
M+1
(boolean) Is the function monotone? (Default is TRUE.)
TRUE
(double) A non-negative number for the Lipschitz cone. (Default is 0.)
get_step_majorizer(fun = abs, breaks = -5:5, is_monotone = FALSE, K = 1)
Run the code above in your browser using DataLab