hydrocode-de / RUINSapp

https://hydrocode-de.github.io/RUINSapp
MIT License
1 stars 1 forks source link

Turn used continous PDF into a config parameter #68

Open mmaelicke opened 2 years ago

mmaelicke commented 2 years ago

originally posted in discussion to #67

Skewed distributions are interesting. Then, I will make the used PDF function a changeable parameter for future developments. As of now, it is hard-coded to scipy.stats.norm.pdf. In the future, we can dynamically change it to any PDF supported by scipy. There are dozens of continuous distributions supporting the .pdf method: https://docs.scipy.org/doc/scipy/reference/stats.html#continuous-distributions

We can basically use any of them. We just need to keep in mind that they don't come with the same function signature, but I think we can limit ourselves to maybe 3 or 4 PDFs.

Originally posted by @mmaelicke in https://github.com/hydrocode-de/RUINSapp/issues/67#issuecomment-1106217754