Skip to content

Commit 9b3ac5a

Browse files
authored
Remove type restriction of log density function (#68)
* Remove type restriction of log density function * Update Project.toml
1 parent ba86e49 commit 9b3ac5a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "AdvancedMH"
22
uuid = "5b7e9947-ddc0-4b3f-9b55-0d8042f74170"
3-
version = "0.6.7"
3+
version = "0.6.8"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

src/AdvancedMH.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ abstract type AbstractTransition end
3333
# Define a model type. Stores the log density function and the data to
3434
# evaluate the log density on.
3535
"""
36-
DensityModel{F<:Function} <: AbstractModel
36+
DensityModel{F} <: AbstractModel
3737
3838
`DensityModel` wraps around a self-contained log-liklihood function `logdensity`.
3939
4040
Example:
4141
4242
```julia
43-
l
44-
DensityModel
43+
l(x) = logpdf(Normal(), x)
44+
DensityModel(l)
4545
```
4646
"""
47-
struct DensityModel{F<:Function} <: AbstractMCMC.AbstractModel
47+
struct DensityModel{F} <: AbstractMCMC.AbstractModel
4848
logdensity :: F
4949
end
5050

0 commit comments

Comments
 (0)