[root]/src/test/dr/inference/operators
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
rambaut | 3 (100.0%) | 82 (100.0%) | 27.3 |
Relaxed the test of RandomWalkOperator to allow for a loss of precision in the looping algorithm.
1 lines of code changed in 2 files:
Implemented algorithm for a reflected random walk avoiding a loop. Refactored the old looping algorithm out into a method and created a unit test to compare the two. Currently for the test with a very large number of loop iterations, the results are different at the 4th decimal place, probably as a result of loss of precision in the repeated subtractions in the loop.
81 lines of code changed in 1 file: