Lower convex envelope/convex hull, Beneath-Beyond algorithm
[bbx,bby] = pl_bb (X,Y)
column vector. A grid of points on which the function is sampled.
column vector. The value of the function on the grid X: usually Y(i)=f(X(i)) for some function f.
column vector. X-coordinates of the vertices of the lower convex hull.
column vector. Y-coordinates of the vertices of the lower convex hull.
Compute numerically the lower convex envelope of the set of points (X(i), Y(i)) and returns the coordinates of the vertices of the lower convex hull.
pl_bb implements the Beneath-Beyond algorithm to achieve a linear-time algorithm.
Yves Lucet
, University of British Columbia, BC, Canada