-
Notifications
You must be signed in to change notification settings - Fork 431
Description
The quantile function does not seem to work with the VonMises distribution:
julia> using Distributions
julia> v = VonMises(0,1)
VonMises{Float64}(μ=0.0, κ=1.0)
julia> quantile(v,0.5)
ERROR: MethodError: no method matching iterate(::VonMises{Float64})
The function iterate exists, but no method is defined for this combination of argument types.
Closest candidates are:
iterate(::Compiler.DominatedBlocks, ::Nothing)
@ Base ../usr/share/julia/Compiler/src/ssair\domtree.jl:645
iterate(::Compiler.DominatedBlocks)
@ Base ../usr/share/julia/Compiler/src/ssair\domtree.jl:645
iterate(::Compiler.CompactPeekIterator, ::Tuple{Int64, Int64, Int64})
@ Base ../usr/share/julia/Compiler/src/ssair\ir.jl:1830
...
Stacktrace:
[1] copyto!(dest::Vector{Float64}, src::VonMises{Float64})
@ Base .\abstractarray.jl:938
[2] _collect(cont::UnitRange{Int64}, itr::VonMises{Float64}, ::Base.HasEltype, isz::Base.HasLength)
@ Base .\array.jl:734
[3] collect(itr::VonMises{Float64})
@ Base .\array.jl:728
[4] quantile(itr::VonMises{Float64}, p::Float64; sorted::Bool, alpha::Float64, beta::Float64)
@ Statistics C:\Users\burg137.julia\packages\Statistics\gbcbG\src\Statistics.jl:1090
[5] top-level scope
@ REPL[3]:1
It works as expected with a Normal distribution
julia> n = Normal(0,1)
Normal{Float64}(μ=0.0, σ=1.0)
julia> quantile(n,0.5)
0.0