39 #include <ompl/multilevel/datastructures/importance/Greedy.h>
41 ompl::multilevel::BundleSpaceImportanceGreedy::BundleSpaceImportanceGreedy(BundleSpaceGraph *graph) : BaseT(graph)
49 double ompl::multilevel::BundleSpaceImportanceGreedy::getLevelConstant()
51 const double k = bundleSpaceGraph_->getLevel() + 1;
52 BundleSpace *cur = bundleSpaceGraph_;
55 while (cur->hasSolution() && cur->hasParent())
57 cur = cur->getParent();
61 double f = (k > 1 ? powf(epsilon, K - k) - powf(epsilon, K - k + 1) : powf(epsilon, K - k));
66 double ompl::multilevel::BundleSpaceImportanceGreedy::eval()
68 const double f = getLevelConstant();
69 double N = (double)bundleSpaceGraph_->getNumberOfVertices();
70 return 1.0 / (N / f + 1);