Skip to content

Type inference for mixture distributions #1307

@kaandocal

Description

@kaandocal

I am currently using Distributions.jl with mixture distributions (example: mixture of Gaussians) via MixtureModel. I have noticed that the compiler seems unable to perform type inference for basic functions such as mean and logpdf even when the MixtureModel struct is fully instantiated. Checking the source code these functions are implemented on the UnivariateMixture. I am currently specialising the functions I need for the specialised types I am working with but I was wondering if there isn't a better way of doing that....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions