minor chaqnges
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user