Extend display options for probability distributions
Issue #78
resolved
It would be interesting to have an option to display probability distributions in a single line, instead of having one line per value / probability. This would be especially interesting in interactive sessions, for distributions having a small set of values, e.g.
>>> lea.binom(4,"1/4")
{ 0: 81/256, 1: 108/256, 2: 54/256, 3: 12/256, 4: 1/256 }
Also, independently, it would be convenient to be able to set display options once for all, through a dedicated function. This could have the same arguments as as_string
instance method, with a new one_line
argument for the enhancement proposed above.
Comments (4)
-
reporter -
reporter - changed status to resolved
-
reporter Fix issue with tuple values (refs
#78)→ <<cset c4f70fe74b24>>
-
reporter Fix 'Alea.as_string' method (refs
#78)→ <<cset e52c24d15b09>>
- Log in to comment
Improve display options (refs
#78)→ <<cset 8646a05c1f17>>