klyn.math.NDArray.histogram2D
method
public histogram2D(notnull other as NDArray<T>, notnull edges as IList<NDArray<Double>>, density as Boolean = false, weights as NDArray<Double> = null, ignoreNaN as Boolean = false) as Tuple<NDArray<Double>, NDArray<Double>, NDArray<Double>>
Description

Joint histogram with independently specified x/y edges.

Parameters
ParameterDescription
otherEqually-sized 1D coordinate series.
edgesTwo finite strictly-increasing boundary arrays.
densityNormalize the cell-area integral.
weightsOptional finite Double observation weights.
ignoreNaNDrop NaN pairs; otherwise raise.
Returns

Counts/densities and independent x/y edge copies.

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

counts, ex, ey = x.histogram2D(y, edges=[xEdges, yEdges])