klyn.math.NDArray.histogramDD
method
public histogramDD(notnull bins as IList<Long>, density as Boolean = false, weights as NDArray<Double> = null, ignoreNaN as Boolean = false) as Tuple<NDArray<Double>, IList<NDArray<Double>>>
Description

D-dimensional histogram with one bin count per coordinate.

Parameters
ParameterDescription
binsPositive counts matching the coordinate dimension.
densityNormalize by included weight and bin volumes.
weightsOptional 1D finite Double observation weights.
ignoreNaNDrop NaN observations; otherwise raise.
Returns

Histogram tensor and independent coordinate edge arrays.

Throws
  • ValueException for unsupported shape or invalid bins/weights.
  • NullException if bins is null at runtime; statically null arguments are rejected with TypeError.
Example

counts, edges = points.histogramDD([4l, 8l, 16l])