View source: R/get_step_majorizer.R
get_step_majorizer | R Documentation |
breaks
argument).Return a piecewise constant (step) majorizer for K-Lipschitz functions
over an interval. The function is vectorized over the breaks
argument.
get_step_majorizer(fun, breaks, is_monotone = TRUE, K = 0)
fun |
A function object with a single argument |
breaks |
(vector or matrix) The set of |
is_monotone |
(boolean) Is the function monotone? (Default is |
K |
(double) A non-negative number for the Lipschitz cone. (Default is 0.) |
A vector of length M
with the values of the piecewise constant majorizer
get_step_majorizer(fun = abs, breaks = -5:5, is_monotone = FALSE, K = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.