The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
wmean.wmean
mir
stat
descriptive
weighted
wmean
meanType
!
F
wmean
(SliceA s, SliceB w)
template
wmean
(F, AssumeWeights assumeWeights, Summation summation = Summation.appropriate, G = F, Summation weightsSummation = Summation.appropriate)
@
fmamath
meanType
!
F
wmean
(
SliceA
SliceB
)
(
SliceA
s
,
SliceB
w
)
if
(
isConvertibleToSlice
!
SliceA
&&
isConvertibleToSlice
!
SliceB
)
if
(
!
is
(
F
:
AssumeWeights
)
)
meanType
!
Range
wmean
(Range r)
template
wmean
(F, Summation summation = Summation.appropriate, AssumeWeights assumeWeights = AssumeWeights.primary, G = F, Summation weightsSummation = Summation.appropriate)
template
wmean
(Summation summation = Summation.appropriate, AssumeWeights assumeWeights = AssumeWeights.primary, Summation weightsSummation = Summation.appropriate)
template
wmean
(F, bool assumeWeights, string summation = "appropriate", G = F, string weightsSummation = "appropriate")
template
wmean
(bool assumeWeights, string summation = "appropriate", string weightsSummation = "appropriate")
template
wmean
(F, string summation, bool assumeWeights = false, G = F, string weightsSummation = "appropriate")
template
wmean
(string summation, bool assumeWeights = false, string weightsSummation = "appropriate")
template
wmean
(F, string summation, G, string weightsSummation, bool assumeWeights)
template
wmean
(string summation, string weightsSummation, bool assumeWeights = false)
Parameters
s
SliceA
slice-like
w
SliceB
weights
Meta
Source
See Implementation
mir
stat
descriptive
weighted
wmean
functions
wmean