'given' method ignored when mixed with 'times' method
Issue #28
closed
The case appears in the following example:
>>> flip = Lea.fromVals(0,1)
>>> flip4 = flip.times(4)
>>> flip4.given(flip4<=2)
0 : 1/16
1 : 4/16
2 : 6/16
3 : 4/16
4 : 1/16
The probability distribution returned is the same as flip4
's. This is wrong.
Comments (5)
-
reporter -
reporter Remove Tlea class and change implementation of Lea.times method (refs
#28)→ <<cset fdbf152b001c>>
-
reporter - changed status to resolved
Fixed in Lea 2.2
-
reporter - changed status to closed
- edited description
-
reporter Remove Tlea class and change implementation of Lea.times method (refs
#28)→ <<cset 12dc3a6e9523>>
- Log in to comment
You can use
getAlea()
method as workaround: