lundi 11 septembre 2017

Built in function to compute random numbers from a list

In Julia 0.6, is there a way to calculate elements from a Poisson distribution taken from a predefined array? For example,

julia> rand([1,2,3])

computes a random element from [1,2,3]. Does exist something like:

julia> poisson([1,2,3])




Aucun commentaire:

Enregistrer un commentaire