Skip to content

Fitting does not respect type parameters #1544

Open
@gdalle

Description

@gdalle

Hi!
In my current project, I would like to fit distributions in reduced precision to speed up my code. I was therefore wondering if the following behavior is intentional:

julia> using Distributions

julia> fit(Normal{Float32}, [1, 2, 3])
Normal{Float64}=2.0, σ=0.816496580927726)

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