foretold-app / widedomain

An experiment to create mathematical models with clean interfaces
MIT License
8 stars 2 forks source link

Gracefully handle empty distributions #53

Open skosch opened 4 years ago

skosch commented 4 years ago

E.g. truncate(uniform(0, 1), 1, 2) currently creates a bunch of d3 errors. Should show a warning to the user instead?

OAGr commented 4 years ago

I guess these distributions would also be awkward with normalization. It's not obvious how to normalize them.