weighted_mean
Signature
weighted_mean(x: ArrayLike, w: ArrayLike | None = None) -> float
weighted_mean computes the simple arithmetic mean or, if provided, the weighted mean with strictly positive weights.
This page serves as a quick index for the function. Usage details are in Overview, while How it works remains as a dedicated subpage.