Open erwald opened 1 year ago
I would like to see https://nunosempere.com/blog/2023/03/15/fit-beta/ implemented in squigglepy as an additional interface to beta
. I'll have to think about how to best handle the important trade-offs you mentioned. Adding lclip
and rclip
sound reasonable too.
You can find an embryonic implementation of this in this pull request. Embryonic because it works in python, but the glue code for integrating it into Squigglepy is missing. Also see more details in the README.md in the pull request.
Currently you can create normal and lognormal distributions using
x
,y
, andcredibility
parameters, e.g.:but the beta distribution initializer only takes alpha/beta values:
It might be nice to also have the previous interface available for
beta
, like here.x
andy
would need to be in the 0 <= i <= 1 range.x
,y
, andcredibility
can't be the default arguments -- like they are fornorm
andlognormal
-- without making this a breaking change.