JuliaStats / StatsBase.jl

Basic statistics for Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weights adding to 0 not an error

ParadaCarleton opened this issue · 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.