Skip to content

Commit

Permalink
Assertions in Float
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv committed Nov 7, 2023
1 parent 08e34be commit e5b8564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WilliamsonTransforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ struct 𝒲₋₁{Tϕ} <: Distributions.ContinuousUnivariateDistribution
ϕ::Tϕ
d::Int64
function 𝒲₋₁(ϕ,d)
@assert ϕ(0) == 1
@assert ϕ(Inf) == 0
@assert ϕ(0.0) == 1.0
@assert ϕ(float(Inf)) == 0.0
# And assertion about d-monotony... how can this be check ? this is hard.
return new{typeof(ϕ)}(ϕ,d)
end
Expand Down

2 comments on commit e5b8564

@lrnv
Copy link
Owner Author

@lrnv lrnv commented on e5b8564 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Adding a test and correcting a bug.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Version 0.0.2 already exists

Please sign in to comment.