JuliaStats / Distributions.jl

A Julia package for probability distributions and associated functions.
Other
1.1k stars 414 forks source link

KSOneSided is broken #988

Open mohamed82008 opened 4 years ago

mohamed82008 commented 4 years ago
julia> logpdf(KSOneSided(1), 0.5)
ERROR: MethodError: no method matching pdf(::KSOneSided, ::Float64)
Closest candidates are:
  pdf(::Chernoff, ::Real) at C:\Users\user\.julia\packages\Distributions\wRw5p\src\univariate\continuous\chernoff.jl:168
  pdf(::Kolmogorov, ::Real) at C:\Users\user\.julia\packages\Distributions\wRw5p\src\univariate\continuous\kolmogorov.jl:81
  pdf(::DiscreteNonParametric{T,P,Ts,Ps} where Ps<:AbstractArray{P,1} where Ts<:AbstractArray{T,1} where P<:Real, ::Real) where T at C:\Users\user\.julia\packages\Distributions\wRw5p\src\univariate\discrete\discretenonparametric.jl:108
  ...
Stacktrace:
 [1] logpdf(::KSOneSided, ::Float64) at C:\Users\user\.julia\packages\Distributions\wRw5p\src\univariates.jl:342
 [2] top-level scope at none:0
johnczito commented 4 years ago

Same as with #987. I don't think the pdf is known.