-
Notifications
You must be signed in to change notification settings - Fork 37
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
Make TracyWidom order a type parameter? #54
Comments
Why in the type? Alternatively we can do struct TracyWidom{T} <: ContinuousUnivariateDistribution
β::T
end A good reason to prefer this is to support |
Yes please! |
Great! I'll get started on one. :) Making One advantage of putting |
Dumitriu and Edelman have a lot of papers on general β. The easiest construction is via a tridiagonal matrix with χ distributed off diagonal entries I can’t see why one would need dispatch, an if statement will be just as convenient |
Ah right, thanks so much for the pointer! I also thought some more and agree with you that there is not really a need for dispatch here. I'll start the pull request once I get some free time - hopefully this weekend! |
Hi! Thanks all for this nice package, I'm quite happily using it to evaluate the Tracy-Widom law of order 1. :)
I was wondering if it might make sense to make
TracyWidom
a parametric type with the order/indexbeta
as the parameter, i.e., replacewith
This seems conceptually nice, and (as far as I could tell) would also simplify some of the code by replacing
if/else
statements in the current code with dispatch (e.g., https://github.com/JuliaMath/RandomMatrices.jl/blob/master/src/densities/TracyWidom.jl#L63-L77).If interested, I'd be happy to try it out in a pull request!
The text was updated successfully, but these errors were encountered: