@@ -20,8 +20,7 @@ For measures `μ` and `ν`, `Density(μ,ν)` represents the _density function_
2020`dμ/dν`, also called the _Radom-Nikodym derivative_:
2121https://en.wikipedia.org/wiki/Radon%E2%80%93Nikodym_theorem#Radon%E2%80%93Nikodym_derivative
2222
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(μ, ν)`.
2524"""
2625struct Density{M,B} <: AbstractDensity
2726 μ:: M
@@ -32,15 +31,6 @@ Base.:∘(::typeof(log), d::Density) = logdensity_rel(d.μ, d.base)
3231
3332Base. log (d:: Density ) = log ∘ d
3433
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)
4434
4535density_rel (μ, base) = Density (μ, base)
4636
@@ -73,16 +63,6 @@ Base.:∘(::typeof(exp), d::LogDensity) = density_rel(d.μ, d.base)
7363
7464Base. exp (d:: LogDensity ) = exp ∘ d
7565
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-
8666logdensity_rel (μ, base) = LogDensity (μ, base)
8767
8868(f:: LogDensity )(x) = logdensity_rel (f. μ, f. base, x)
0 commit comments