[−][src]Function arrayfire::mean_weighted
pub fn mean_weighted<T, W>(
input: &Array<T>,
weights: &Array<W>,
dim: i64
) -> Array<T::MeanOutType> where
T: HasAfEnum,
T::MeanOutType: HasAfEnum,
W: HasAfEnum + RealFloating,
Weighted mean along specified dimension
Parameters
inputis the input ArrayweightsArray has the weights to be used during the stat computationdimis dimension along which the current stat has to be computed
Return Values
An Array whose size is equal to input except along the dimension which
the stat operation is performed. Array size along dim will be reduced to one.