pyinterp.Binning1D.push#
- Binning1D.push(x: numpy.ndarray, z: numpy.ndarray, weights: numpy.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).