avgWeighted
avgWeighted
Introduced in: v20.1
Calculates the weighted arithmetic mean.
Syntax
Arguments
Returned value
Returns NaN if all the weights are equal to 0 or the supplied weights parameter is empty, or the weighted mean otherwise. Float64
Examples
Usage example
Mixed integer and float weights
All weights are zero returns NaN
Empty table returns NaN