We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89554b commit 5a85a30Copy full SHA for 5a85a30
src/hist.jl
@@ -461,7 +461,7 @@ arrays appropriately. See description of `normalize` for details. Returns `h`.
461
if mode == :pdf || mode == :density
462
# Divide weights by bin volume, for :pdf also divide by sum of weights
463
SumT = norm_type(h)
464
- vs_0 = (mode == :pdf) ? sum(SumT(x) for x in weights) : one(SumT)
+ vs_0 = (mode == :pdf) ? sum(SumT, weights) : one(SumT)
465
@inbounds @nloops $N i weights d->(vs_{$N-d+1} = vs_{$N-d} * _edge_binvolume(SumT, edges[d], i_d)) begin
466
(@nref $N weights i) /= $(Symbol("vs_$N"))
467
for A in aux_weights
0 commit comments