Skip to main content

weighted_sum

Function weighted_sum 

Source
pub fn weighted_sum(
    a: &NdArrowArray,
    weights: &NdArrowArray,
    axes: Option<&[&str]>,
) -> Result<NdArrowArray>
Expand description

Weighted sum over axes, like xarray.DataArray.weighted(w).sum(). Null values of a count as zero. Result type follows a * weights.