diff --git a/dev/adding/index.html b/dev/adding/index.html index 45548e00..9a614c6b 100644 --- a/dev/adding/index.html +++ b/dev/adding/index.html @@ -21,4 +21,4 @@ gentype(::Lebesgue{ℝ₊}) = Float64 gentype(::Lebesgue{𝕀}) = Float64 -logdensity_def(::Lebesgue, x) = zero(float(x))
We haven't yet talked about gentype
. When you call rand
without specifying a type, there needs to be a default. That default is the gentype
. This only needs to be defined for primitive measures, because others will fall back on
gentype(μ::AbstractMeasure) = gentype(basemeasure(μ))
Settings
This document was generated with Documenter.jl version 0.27.24 on Friday 23 June 2023. Using Julia version 1.9.1.