Instances of IntervalTerminator throw a runtime exception when
constructing a parameter with zero probability. Instead it should not
throw an exception, but indicate the likelihood of these parameters
are zero.
Files involved
src/timtam/IntervalTerminator.java
src/timtam/TimTam.java
To reproduce
Instantiate an interval terminator with a negative count.
Tasks
Fix the interval terminator class so that it does not throw an
exception so readily.
Include a check in the likelihood calculation for implausible
counts so a negative infinity can be returned for the
log-likelihood.
Update the Timtam package version and release it to GitHub.
Description
Instances of
IntervalTerminator
throw a runtime exception when constructing a parameter with zero probability. Instead it should not throw an exception, but indicate the likelihood of these parameters are zero.Files involved
src/timtam/IntervalTerminator.java
src/timtam/TimTam.java
To reproduce
Instantiate an interval terminator with a negative count.
Tasks