Name

plq_plotpa_lambdaSet — Piecewise linear quadratic (plq), plot nonconvex proximal average over lambda

Calling Sequence

plq_plotpa_lambdaSet(f1, f2, x, lambdaSet, mu, rect)

Parameters

f1

matrix. The first plq function of the proximal average (lambda=0).

f2

matrix. The second plq function of the proximal average (lambda=1).

x

column vector. The points at which to evaluate the proximal average.

lambdaSet

column vector. The lambda values at which to plot the proximal average.

mu

constant. The smoothing parameter to apply to the average.

rect

row vector. [xmin,ymin,xmax,ymax] for the plot window as with plot2d.

Description

<listitem>

For each lambda in lambdaSet, plots the proximal average of two PLQ functions over the provided x values and with the provided mu. The proximal averages are computed with plq_pa_mu, so f1 and f2 do not have to be convex. The rect argument bounds the plot's visible region and is required. All of the proximal averages are plotted on the same graph, and the colours of successive PA's fade from blue (lambda=0) to red (lambda=1) via jetcolormap.

</listitem>

Examples

f1 = [2,0,2,-4; %inf,0,0,0];
f2 = [-3,0,30,90; 0,0,0,0; %inf,1,0,0];
clf(0,"reset");
plq_plotpa_lambdaSet(f1, f2, -20:0.01:10, 0:0.05:1, 0.2, [-20,-20,10,40]);
plq_plotMultiple(-4.2, 6, f2);
plq_plotMultiple(-15.9, 10, f1);
  

See Also

plq_function

Authors

Bryan Gardiner, University of British Columbia, BC, Canada