We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08e34be commit e5b8564Copy full SHA for e5b8564
src/WilliamsonTransforms.jl
@@ -90,8 +90,8 @@ struct 𝒲₋₁{Tϕ} <: Distributions.ContinuousUnivariateDistribution
90
ϕ::Tϕ
91
d::Int64
92
function 𝒲₋₁(ϕ,d)
93
- @assert ϕ(0) == 1
94
- @assert ϕ(Inf) == 0
+ @assert ϕ(0.0) == 1.0
+ @assert ϕ(float(Inf)) == 0.0
95
# And assertion about d-monotony... how can this be check ? this is hard.
96
return new{typeof(ϕ)}(ϕ,d)
97
end
0 commit comments