statistics
statistics copied to clipboard
Constructor for discrete distribution
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