klyn.math.NDArray.histogramBinEdges
method
public histogramBinEdges(bins as Long = 10l, bounds as Tuple<Double, Double> = null, ignoreNaN as Boolean = false) as NDArray<Double>
Description

Computes only uniform histogram boundaries, without allocating/counting bins. O(N + bins) time, O(bins) memory; the source is flattened without a copy.

Parameters
ParameterDescription
binsPositive number of intervals.
boundsOptional finite (minimum,maximum), with positive width.
ignoreNaNIgnore NaN observations; otherwise raise ValueException.
Returns

Independent 1D Double tensor with bins+1 boundaries.

Throws
  • ValueException for invalid bins/bounds or non-finite automatic extent.
Example

edges = data.histogramBinEdges(bins=20l)