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

[InverseGaussian?] Distribution printing syntax is almost, but not exactly, a valid julia code (named argument support) #1897

Open
LebedevRI opened this issue Sep 11, 2024 · 0 comments

Comments

@LebedevRI
Copy link

julia> InverseGaussian{Float64}(1.423771698898998, 117.32913311572386)
InverseGaussian{Float64}=1.423771698898998, λ=117.32913311572386)
julia> InverseGaussian{Float64}=1.423771698898998, λ=117.32913311572386)
MethodError: no method matching InverseGaussian{Float64}(; μ::Float64, λ::Float64)

Closest candidates are:
  InverseGaussian{T}(::T, ::T) where T<:Real got unsupported keyword arguments "μ", "λ"
   @ Distributions ~/.julia/packages/Distributions/nmUhn/src/univariate/continuous/inversegaussian.jl:29


Stacktrace:
 [1] top-level scope
   @ In[13]:1

It would be nice if there was roundtripping support, it seems like just a missing constructor.
Not sure which other distributions are affected.

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