Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weights adding to 0 not an error #870

Open
ParadaCarleton opened this issue Jun 27, 2023 · 0 comments
Open

Weights adding to 0 not an error #870

ParadaCarleton opened this issue Jun 27, 2023 · 0 comments
Labels

Comments

@ParadaCarleton
Copy link
Contributor

ParadaCarleton commented Jun 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant