Skip to content

Function: curvatureSpread() ​

ts
function curvatureSpread(curvature, percentile?): number;

Defined in: layers/CurvatureLayer.ts:62

Robust spread of curvature values: the given percentile of |value| over the finite entries, or 0 when there are none.

Parameters ​

curvature ​

ArrayLike<number>

percentile? ​

number = CURVATURE_SPREAD_PERCENTILE

Returns ​

number

Released under the MIT License.