We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
entropy
LocationScale
1 parent 9062431 commit c93b5d7Copy full SHA for c93b5d7
src/families/location_scale.jl
@@ -67,6 +67,7 @@ Base.eltype(::Type{<:MvLocationScale{S, D, L}}) where {S, D, L} = eltype(D)
67
function StatsBase.entropy(q::MvLocationScale)
68
@unpack location, scale, dist = q
69
n_dims = length(location)
70
+ # `convert` is necessary because `entropy` is not type stable upstream
71
n_dims*convert(eltype(location), entropy(dist)) + logdet(scale)
72
end
73
0 commit comments