File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858
5959
6060"""
61- logfuncdensity(log_f::Base.Callable )
61+ logfuncdensity(log_f)
6262
6363Returns a `DensityInterface`-compatible density that is defined by a given
6464log-density function `log_f`:
@@ -83,19 +83,19 @@ logfuncdensity(logdensityof(density)) == density
8383function logfuncdensity end
8484export logfuncdensity
8585
86- logfuncdensity (log_f:: Base.Callable ) = LogFuncDensity (log_f)
86+ logfuncdensity (log_f) = LogFuncDensity (log_f)
8787
8888logfuncdensity (log_f:: Base.Fix1{typeof(logdensityof)} ) = log_f. x
8989
9090
9191"""
92- struct DensityInterface.LogFuncDensity{F<:Base.Callable }
92+ struct DensityInterface.LogFuncDensity{F}
9393
9494Wraps a log-density function `log_f` to make it compatible with `DensityInterface`
9595interface. Typically, `LogFuncDensity(log_f)` should not be called
9696directly, [`logfuncdensity`](@ref) should be used instead.
9797"""
98- struct LogFuncDensity{F<: Base.Callable }
98+ struct LogFuncDensity{F}
9999 _log_f:: F
100100end
101101LogFuncDensity
You can’t perform that action at this time.
0 commit comments