Skip to content

Commit ca4bf50

Browse files
committed
Correct docstring of Likelihood and improve type safety
Likelihoods can be built from callables as well.
1 parent e7f2892 commit ca4bf50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/combinators/likelihood.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Base.:∘(::typeof(log), lik::AbstractLikelihood) = logdensityof(lik)
1616
# insupport(ℓ::AbstractLikelihood, p) = insupport(ℓ.k(p), ℓ.x)
1717

1818
@doc raw"""
19+
Likelihood(k::Base.Callable, x)
1920
Likelihood(k::AbstractTransitionKernel, x)
2021
2122
"Observe" a value `x`, yielding a function from the parameters to ℝ.

0 commit comments

Comments
 (0)