Description Usage Arguments Examples
Finds the empirical Lipschitz constant of f, a lower bound on the Lipschitz constant of f.
1 | find.K.hat(X, f.X, lp.norm = Inf, min.distance = 0)
|
X |
a matrix whose rows are points where f is observed |
f.X |
a vector whose values are f evaluated at each row of X |
lp.norm |
an integer (or |
min.distance |
only pairs of points in X farther apart than this threshold are considered. Defaults to 0. |
1 2 3 4 | X <- expand.grid(1:9, 1:9) / 10
f <- function(x) sin(x[1]) + cos(x[2])
f.X <- apply(X, 1, f)
find.K.hat(X, f.X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.