Uses correct coefficients for local optimality in CH alternatives
The alpha constant is for the local optimality T-Test threshold. Before we used epsilon for the T-Test threshold, but the epsilon constant is meant to be used for the stretch test(s) only. This changeset fixes the local optimality T-Test and uses the epsilon constant for the two stretch tests: - We test the stretch for the total route against epsilon and - We test the detour against the epsilon now, too We can discuss if the second stretch test should actually use epsilon, too, or a adapted value of it - but definitly not alpha.
This commit is contained in:
committed by
Michael Krasnyk
parent
9158f69ea0
commit
de1d5f199f
@@ -55,8 +55,8 @@ Feature: Alternative route
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | alternative |
|
||||
| b | c | bc,bc | |
|
||||
#| c | b | bc,bc | | # alternative path depends on phantom snapping order
|
||||
| b | c | bc,bc | ab,ae,ef,fd,cd,cd |
|
||||
#| c | b | bc,bc | cd,fd,ef,ae,ab,ab | # alternative path depends on phantom snapping order
|
||||
| 1 | c | ab,bc,bc | ab,ae,ef,fd,cd,cd |
|
||||
#| c | 1 | bc,ab | cd,fd,ef,ae,ab | # alternative path depends on phantom snapping order
|
||||
| 2 | c | bc,bc | |
|
||||
|
||||
Reference in New Issue
Block a user