added exponential distrbution + tests

new shortest-path walker (still todo)
modified dijkstra-path (new helper methods)
This commit is contained in:
2016-02-07 13:32:19 +01:00
parent 5b35b5d3e0
commit 6346231a64
5 changed files with 339 additions and 5 deletions

View File

@@ -43,8 +43,10 @@ public:
}
/** allow iteration */
decltype(path.begin()) begin() {return path.begin();}
decltype(path.end()) end() {return path.end();}
decltype(path.begin()) begin() {return path.begin();}
decltype(path.end()) end() {return path.end();}
const DijkstraNode<T>& operator [] (const int idx) const {return *(path[idx]);}
size_t size() const {return path.size();}
/** NANOFLANN: number of elements in the path */