pwtools.num.inner_points_mask

pwtools.num.inner_points_mask(points)[source]

Mask array into points where points[msk] are all “inner” points, i.e. points with one level of edge points removed. For 1D, this is simply points[1:-1,:] (assuming ordered points). For ND, we calculate and remove the convex hull.

Parameters:

points (nd array (npoints, ndim)) –

Returns:

msk – Bool array.

Return type:

(npoints, ndim)