Convex operators via optimization (OPT), Moreau envelope
[y, argmin] = opt_me(f, df, domf, x, lambda, output)
Univariate function, continuous but (potentially) nonsmooth.
Univariate function: derivative of f.
Domain of the function f (set of points where the function is finite). Domains are stored as intervals I=[lb,ub] with ub<lb storing an empty set.
Vector of points at which to evaluate the Moreau envelope.
Real number. Positive smoothing parameter.
0: no output, 1: progress bar.
The values of the Moreau envelope evaluated at each x.
A point at which the Moreau envelope attains its minimum, for each x.
Computes the Moreau envelope of f (with smoothing parameter lambda) evaluated on vector x, giving the values y such that