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

VonMises #138

Open
yakir12 opened this issue Oct 23, 2023 · 1 comment
Open

VonMises #138

yakir12 opened this issue Oct 23, 2023 · 1 comment

Comments

@yakir12
Copy link

yakir12 commented Oct 23, 2023

Hej Fredrik!
It would be great if this worked with a Von Mises distribution:

julia> Particles(VonMises())
ERROR: MethodError: no method matching iterate(::VonMises{Float64})

Closest candidates are:
  iterate(::Union{LinRange, StepRangeLen})
   @ Base range.jl:880
  iterate(::Union{LinRange, StepRangeLen}, ::Integer)
   @ Base range.jl:880
  iterate(::T) where T<:Union{Base.KeySet{<:Any, <:Dict}, Base.ValueIterator{<:Dict}}
   @ Base dict.jl:698
  ...
@baggepinnen
Copy link
Owner

Hey Yakir!

I'll look into what the problem is here, in the meantime,

julia> Particles(rand(VonMises(), 100))
0.0863504 ± 1.35 Particles{Float64, 100}

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

2 participants