Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructor for discrete distribution #129

Open
dschrempf opened this issue Aug 16, 2017 · 0 comments
Open

Constructor for discrete distribution #129

dschrempf opened this issue Aug 16, 2017 · 0 comments

Comments

@dschrempf
Copy link

dschrempf commented Aug 16, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant