Skip to main content

average

Function average 

Source
pub fn average<T>(
    data: &[T],
    weights: &[T],
    axes: &Axes,
    mappings: [&Mapping; 2],
) -> Vec<T>
where T: Scalar + Element, Sum: Reduction<T, Total = T>,
Expand description

Weighted means. The two mappings broadcast data and weights into an array of dims. Weights may be real or complex; a zero total weight gives the ordinary floating-point quotient.