worked on signal-strength-estimation
add this information to grid nodes evaluate this information new test-cases
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "../../grid/walk/GridWalkWeighted.h"
|
||||
#include "../../grid/walk/GridWalkLightAtTheEndOfTheTunnel.h"
|
||||
|
||||
|
||||
//TEST(Walk, plot) {
|
||||
TEST(Walk, DISABLED_plot) {
|
||||
|
||||
@@ -59,7 +60,7 @@ TEST(Walk, DISABLED_plot) {
|
||||
int getNumNeighbors(const GP& node) const {return node.getNumNeighbors();}
|
||||
const GP* getNeighbor(const GP& node, const int idx) const {return &grid.getNeighbor(node, idx);}
|
||||
float getWeightBetween(const GP& n1, const GP& n2) const {
|
||||
float d = ((Point3)n1 - (Point3)n2).length(2.0);
|
||||
float d = (n1.inCentimeter() - n2.inCentimeter()).length(2.0);
|
||||
//if (d > 20) {d*= 1.30;}
|
||||
return d / std::pow(n2.imp, 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user