We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code sample seems outdated in the mixture page of the documentation.
Instead, according to the mixturemodel.jl source file it should be:
abstract type AbstractMixtureModel{VF<:VariateForm,VS<:ValueSupport,C<:Distribution} <: Distribution{VF, VS} end struct MixtureModel{VF<:VariateForm,VS<:ValueSupport,C<:Distribution,CT<:Categorical} <: AbstractMixtureModel{VF,VS,C} components::Vector{C} prior::CT end const UnivariateMixture{S<:ValueSupport, C<:Distribution} = AbstractMixtureModel{Univariate,S,C} const MultivariateMixture{S<:ValueSupport, C<:Distribution} = AbstractMixtureModel{Multivariate,S,C}
The additional C<:Distribution is needed in order to be able to define a custom mixture without error.
C<:Distribution
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This code sample seems outdated in the mixture page of the documentation.
Instead, according to the mixturemodel.jl source file it should be:
The additional
C<:Distribution
is needed in order to be able to define a custom mixture without error.The text was updated successfully, but these errors were encountered: