Skip to content

Function: isUniformEdges() ​

ts
function isUniformEdges(edges, n?): boolean;

Experimental

Whether the first n + 1 edges have equal widths: within 1e-9 relative, plus a few float64 ulps of the largest edge magnitude (so equal-width bins at large offsets, e.g. ms timestamps, qualify).

Parameters ​

ParameterType
edgesArrayLike<number>
nnumber

Returns ​

boolean

Released under the MIT License.