StatsBase.jl icon indicating copy to clipboard operation
StatsBase.jl copied to clipboard

Weights adding to 0 not an error

Open ParadaCarleton opened this issue 2 years ago • 0 comments

julia> p = pweights(zeros(10))
10-element ProbabilityWeights{Float64, Float64, Vector{Float64}}:
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0
 0.0

Weights should probably throw an error if the sum is 0.

ParadaCarleton avatar Jun 27 '23 00:06 ParadaCarleton