File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
name = " AdvancedMH"
2
2
uuid = " 5b7e9947-ddc0-4b3f-9b55-0d8042f74170"
3
- version = " 0.6.7 "
3
+ version = " 0.6.8 "
4
4
5
5
[deps ]
6
6
AbstractMCMC = " 80f14c24-f653-4e6a-9b94-39d6b0f70001"
Original file line number Diff line number Diff line change @@ -33,18 +33,18 @@ abstract type AbstractTransition end
33
33
# Define a model type. Stores the log density function and the data to
34
34
# evaluate the log density on.
35
35
"""
36
- DensityModel{F<:Function } <: AbstractModel
36
+ DensityModel{F} <: AbstractModel
37
37
38
38
`DensityModel` wraps around a self-contained log-liklihood function `logdensity`.
39
39
40
40
Example:
41
41
42
42
```julia
43
- l
44
- DensityModel
43
+ l(x) = logpdf(Normal(), x)
44
+ DensityModel(l)
45
45
```
46
46
"""
47
- struct DensityModel{F<: Function } <: AbstractMCMC.AbstractModel
47
+ struct DensityModel{F} <: AbstractMCMC.AbstractModel
48
48
logdensity :: F
49
49
end
50
50
You can’t perform that action at this time.
0 commit comments