The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
wsum.wsum
mir
stat
descriptive
weighted
wsum
sumType
!
SliceA
wsum
(SliceA s, SliceB w)
template
wsum
(Summation summation = Summation.appropriate)
@
fmamath
sumType
!
SliceA
wsum
(
SliceA
SliceB
)
(
SliceA
s
,
SliceB
w
)
if
(
isConvertibleToSlice
!
SliceA
&&
isConvertibleToSlice
!
SliceB
)
sumType
!
Range
wsum
(Range r)
template
wsum
(F, Summation summation = Summation.appropriate, G = F)
template
wsum
(F, string summation, G = F)
template
wsum
(string summation)
Parameters
s
SliceA
slice-like
w
SliceB
weights
Meta
Source
See Implementation
mir
stat
descriptive
weighted
wsum
functions
wsum