You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anyone else thinks that it would be important to support unitful parameters? In particular, I think that Normal(1u"K", 1u"K") could work?
It currently doesn't work because the constructors of the distributions have strict Real argument types. Can we simply erase this type annotation and fix the code accordingly when possible? I am happy to submit a PR for Normal as a test case.
The text was updated successfully, but these errors were encountered:
I'm not fundamentally against it and would review a PR. However, one has to be careful that the results of pdf, cdf etc. have the correct units. It also requires changes in StatsFuns which currently only supports Real parameters: https://github.com/JuliaStats/StatsFuns.jl/blob/master/src/distrs/norm.jl
Anyone else thinks that it would be important to support unitful parameters? In particular, I think that
Normal(1u"K", 1u"K")
could work?It currently doesn't work because the constructors of the distributions have strict
Real
argument types. Can we simply erase this type annotation and fix the code accordingly when possible? I am happy to submit a PR forNormal
as a test case.The text was updated successfully, but these errors were encountered: