Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Jun 28, 2024
1 parent 8653c2d commit 228da0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/truncated/lognormal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ naive_moment(d, n, μ, σ²) = (σ = sqrt(σ²); expectation(x -> ((x - μ) / σ
# Without a `max(_, 0)`, this would be within machine precision of 0 (as above) but
# numerically negative, which could cause downstream issues that assume a nonnegative
# variance
@test v1 > 0
@test v1 >= 0
# Compare results with not specifying a lower bound at all
d2 = truncated(LogNormal(1, 5); upper=1e5)
@test mean(d1) == mean(d2)
Expand Down

0 comments on commit 228da0e

Please sign in to comment.