statistics icon indicating copy to clipboard operation
statistics copied to clipboard

Constructor for discrete distribution

Open dschrempf opened this issue 8 years ago • 0 comments

Hello,

I would like to use custom (in my case discrete) distributions and make use of the machinery of the statistics package. I.e., I would like to create instances of DiscreteDistr in an easy way (of course, I could define Distribution->cumulative and DiscreteDistr->probability). Is this possible with a simple constructor? I guess it would be straightforward to write this constructor (e.g., createDiscreteDistr :: [Double] -> DiscreteCustom) for arbitrary discrete distributions but I may be wrong, please correct me in this case.

Thanks, Dominik

dschrempf avatar Aug 16 '17 19:08 dschrempf