You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
functionlikelihoods(hmm::AbstractHMM{Univariate}, observations)
hcat(map(d ->pdf.(d, observations), hmm.D)...)
endfunctionlikelihoods(hmm::AbstractHMM{Multivariate}, observations)
# OPTIMIZE ?
ls =zeros(size(observations)[1], size(hmm)[1])
@inboundsfor i =1:size(hmm)[1], t =1:size(observations)[1]
ls[t,i] =pdf(hmm.D[i], view(observations,t,:))
end
ls
end
but this different implementation would not be necessary if observations coming from multivariate distributions were Arrays of Arrays.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
thanks for this nice package!
I was wandering what is the advantage of having the subtype
VariateForm
AbstractHMM{F<:VariateForm}
?I feel there is no real necessity of having this since you can get it from the vector of distribution.
The text was updated successfully, but these errors were encountered: