pyinterp.Binning1D.push

Binning1D.push(x: ndarray, z: ndarray, weights: ndarray | None = None) None[source]

Push new samples into the defined bins.

Parameters:
  • x – X coordinates of the samples

  • z – New samples to push into the defined bins.

  • weights – An array of weights, of the same shape as z. Each value in a only contributes its associated weight towards the bin count (instead of 1).