klyn.math.NDArray.histogramDD
method
public histogramDD(notnull edges as IList<NDArray<Double>>, 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 explicit coordinate edges; source unchanged.

Parameters
ParameterDescription
edgesOne strictly-increasing finite 1D boundary array per coordinate.
densityNormalize the cell-volume integral to one.
weightsOptional finite 1D Double observation weights.
ignoreNaNDrop NaN observations; otherwise raise.
Returns

Histogram tensor and independent edge copies.

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

counts, edges = points.histogramDD(edges=[xEdges, yEdges])