Skip to content

Commit a75855f

Browse files
committed
Add minimum/maximum for NoDist
1 parent 06aa6a6 commit a75855f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/distribution_wrappers.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ function Distributions.logpdf(d::NoDist{<:Multivariate}, x::AbstractMatrix{<:Rea
3737
return zeros(Int, size(x, 2))
3838
end
3939
Distributions.logpdf(d::NoDist{<:Matrixvariate}, ::AbstractMatrix{<:Real}) = 0
40+
Distributions.minimum(d::NoDist) = minimum(d.dist)
41+
Distributions.maximum(d::NoDist) = maximum(d.dist)
4042

4143
Bijectors.logpdf_with_trans(d::NoDist{<:Univariate}, ::Real) = 0
4244
Bijectors.logpdf_with_trans(d::NoDist{<:Multivariate}, ::AbstractVector{<:Real}) = 0

0 commit comments

Comments
 (0)