From 6f7e957fb2d33451b193a54ce6660b653cd564c4 Mon Sep 17 00:00:00 2001 From: Filip Tronarp Date: Mon, 8 Jul 2024 15:44:07 +0200 Subject: [PATCH] flat subtypes abstract (#91) * flat subtypes abstract * vbump --- Project.toml | 2 +- src/likelihoods.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 9b777bc3..50286b3c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MarkovKernels" uuid = "202a2b00-fae3-41a1-a054-d2db40c1e3ea" authors = ["Filip Tronarp and contributors"] -version = "0.2.0" +version = "0.2.1" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/likelihoods.jl b/src/likelihoods.jl index 6cc275ae..001af4ce 100644 --- a/src/likelihoods.jl +++ b/src/likelihoods.jl @@ -3,7 +3,7 @@ Type for representing flat likelihoods. """ -struct FlatLikelihood end +struct FlatLikelihood <: AbstractLikelihood end """ Likelihood{U,V} @@ -40,7 +40,7 @@ measurement(L::Likelihood) = L.y """ log(L::Likelihood, x) -Computes the logarithm of the likelihood L at x. +Computes the logarithm of the likelihood L at x. """ log(L::Likelihood, x) = logpdf(condition(measurement_model(L), x), measurement(L))