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
https://github.com/JuliaStats/Distributions.jl/blob/f889f9e56b0243d770c195b3eee8baef4880bd2e/src/univariate/discrete/poisson.jl#L1-L22
Hi, I think the docs should be more clear on the Poisson Object that is generated when Poisson ($\lambda$) is executed. In Python we use numpy.random.poisson and give it an argument to generate an iterable over the Poisson Distribution, but here the function just takes one argument and the returned Poisson object has only one field ( $\lambda$ itself). I later found out that the object can be used as an argument for rand to generate the iterable. A newcomer might get stuck as there is no help regarding the nature of the Poisson Object in Docs.
I think a line like this in the docs might work: The Poisson Object is of type UnivariateDistribution which can be passed to the rand() function as an argument along with an integer N, to generate an iterable of size N.
I will make a pull request if the issue is considerable.
The text was updated successfully, but these errors were encountered:
Yeah, adding a line to Poisson will not be right, as it applies for all kinds of distributions. Although, in getting started guide it is only explicitly shown for Normal, and in using other distributions, using rand is not mentioned. But I guess it is not that necessary too, one can follow the working of normal if he/she has generating samples in mind. I can close the issue if it is so. I guess the example is clear, just a reference to it being used in all kind of distributions was what I thought, so specifically I asked for Poisson.
https://github.com/JuliaStats/Distributions.jl/blob/f889f9e56b0243d770c195b3eee8baef4880bd2e/src/univariate/discrete/poisson.jl#L1-L22$\lambda$ ) is executed. In Python we use numpy.random.poisson and give it an argument to generate an iterable over the Poisson Distribution, but here the function just takes one argument and the returned Poisson object has only one field ( $\lambda$ itself). I later found out that the object can be used as an argument for rand to generate the iterable. A newcomer might get stuck as there is no help regarding the nature of the Poisson Object in Docs.
Hi, I think the docs should be more clear on the Poisson Object that is generated when Poisson (
I think a line like this in the docs might work:
The Poisson Object is of type UnivariateDistribution which can be passed to the rand() function as an argument along with an integer N, to generate an iterable of size N.
I will make a pull request if the issue is considerable.
The text was updated successfully, but these errors were encountered: