Dispatching is one of Julia’s strong suits. I was wondering, is there a single function which would generate a
random element based on a given probability distribution function, a random number genarator and a given element interval? I’m using Julia 0.7. If not, what are your suggestions?
I’m talking about something similar to the fit_mle(D, x, w) method in the DIstribution.jl.
fit_mle(D, x, w)
Fit a distribution of type
Dto a weighted data set
x, with weights given by
wshould be an array with length
nis the number of samples contained in
fit_mlemethod has been implemented for the following distributions: