The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
wmean.wmean
mir
stat
descriptive
weighted
wmean
meanType
!
F
wmean
(SliceA s, SliceB w)
meanType
!
Range
wmean
(Range r)
template
wmean
(F, AssumeWeights assumeWeights, Summation summation = Summation.appropriate, G = F, Summation weightsSummation = Summation.appropriate)
@
fmamath
meanType
!
Range
wmean
(
Range
)
(
Range
r
)
if
(
isIterable
!
Range
)
if
(
!
is
(
F
:
AssumeWeights
)
)
Parameters
r
Range
range, must be finite iterable
Meta
Source
See Implementation
mir
stat
descriptive
weighted
wmean
functions
wmean