Skip to content
New issue

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

Changing the type from Float to Int breaks mean of MixtureModel #1851

Open
Vilin97 opened this issue Apr 16, 2024 · 0 comments
Open

Changing the type from Float to Int breaks mean of MixtureModel #1851

Vilin97 opened this issue Apr 16, 2024 · 0 comments

Comments

@Vilin97
Copy link

Vilin97 commented Apr 16, 2024

julia> using Distributions, LinearAlgebra

julia> MixtureModel(MvNormal[MvNormal([-1.,0.], I(2))], [1]) |> mean
2-element Vector{Float64}:
 -1.0
  0.0

julia> MixtureModel(MvNormal[MvNormal([-1,0], I(2))], [1]) |> mean
ERROR: MethodError: no method matching axpy!(::Int64, ::Vector{Int64}, ::Vector{Float64})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant