minor chaqnges

This commit is contained in:
k-a-z-u
2017-11-22 17:38:37 +01:00
parent d03372ad3d
commit 55c061b344

View File

@@ -299,10 +299,11 @@ namespace GW3 {
// continue; // continue;
// } // }
//Assert::isTrue(grid.hasNodeFor(Helper::p3ToGp(end)), "random destination is not part of the grid"); //Assert::isTrue(grid.hasNodeFor(Helper::p3ToGp(end)), "random destination is not part of the grid");
const float walkDist_m = end.getDistance(start);//*1.05;
double p = 1; double p = 1;
for (const WalkEvaluator<Node>* eval : evals) { for (const WalkEvaluator<Node>* eval : evals) {
const double p1 = eval->getProbability(start, end, params); const double p1 = eval->getProbability(start, end, walkDist_m, params);
p *= p1; p *= p1;
} }