@@ -20,8 +20,7 @@ For measures `μ` and `ν`, `Density(μ,ν)` represents the _density function_
20
20
`dμ/dν`, also called the _Radom-Nikodym derivative_:
21
21
https://en.wikipedia.org/wiki/Radon%E2%80%93Nikodym_theorem#Radon%E2%80%93Nikodym_derivative
22
22
23
- Instead of calling this directly, users should call `density_rel(μ, ν)` or
24
- its abbreviated form, `𝒹(μ,ν)`.
23
+ Instead of calling this directly, users should call `density_rel(μ, ν)`.
25
24
"""
26
25
struct Density{M,B} <: AbstractDensity
27
26
μ:: M
@@ -32,15 +31,6 @@ Base.:∘(::typeof(log), d::Density) = logdensity_rel(d.μ, d.base)
32
31
33
32
Base. log (d:: Density ) = log ∘ d
34
33
35
- export 𝒹
36
-
37
- """
38
- 𝒹(μ, base)
39
-
40
- Compute the density (Radom-Nikodym derivative) of μ with respect to `base`. This
41
- is a shorthand form for `density_rel(μ, base)`.
42
- """
43
- 𝒹 (μ, base) = density_rel (μ, base)
44
34
45
35
density_rel (μ, base) = Density (μ, base)
46
36
@@ -73,16 +63,6 @@ Base.:∘(::typeof(exp), d::LogDensity) = density_rel(d.μ, d.base)
73
63
74
64
Base. exp (d:: LogDensity ) = exp ∘ d
75
65
76
- export log𝒹
77
-
78
- """
79
- log𝒹(μ, base)
80
-
81
- Compute the log-density (Radom-Nikodym derivative) of μ with respect to `base`.
82
- This is a shorthand form for `logdensity_rel(μ, base)`
83
- """
84
- log𝒹 (μ, base) = logdensity_rel (μ, base)
85
-
86
66
logdensity_rel (μ, base) = LogDensity (μ, base)
87
67
88
68
(f:: LogDensity )(x) = logdensity_rel (f. μ, f. base, x)
0 commit comments