Description Usage Arguments Value Examples
Computes the proximal operator of the bounded non-decreasing vectors, i.e.,
prox(x) = argmin_u || u - x ||^2 such that u_1 ≤ ... ≤ u_n and ||u|| ≤ M
This is simply the projection of $x$ onto the set of non-decreasing vectors, obtained by isotonic regression, followed by projection onto the Euclidean ball of radius $M$.
1 | prox.boundednondecreasing(x, t = 0, opts = list())
|
x |
The input vector |
opts |
Optional list of parameters, which can include:
|
The projection of x
onto the set of nondecreasing vectors with
norm bounded by maxnorm
.
1 2 3 4 | a <- rnorm(20)+1
plot(a)
lines(prox.boundednondecreasing(a), col=2)
lines(prox.boundednondecreasing(a, opts=list(maxnorm=10)), col=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.