range_search_stat.hpp

Go to the documentation of this file.
00001 
00023 #ifndef __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_STAT_HPP
00024 #define __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_STAT_HPP
00025 
00026 #include <mlpack/core.hpp>
00027 
00028 namespace mlpack {
00029 namespace range {
00030 
00036 class RangeSearchStat
00037 {
00038  public:
00042   RangeSearchStat() : lastDistanceNode(NULL), lastDistance(0.0) { }
00043 
00048   template<typename TreeType>
00049   RangeSearchStat(TreeType& /* node */) :
00050       lastDistanceNode(NULL),
00051       lastDistance(0.0) { }
00052 
00054   void* LastDistanceNode() const { return lastDistanceNode; }
00056   void*& LastDistanceNode() { return lastDistanceNode; }
00058   double LastDistance() const { return lastDistance; }
00060   double& LastDistance() { return lastDistance; }
00061 
00062  private:
00064   void* lastDistanceNode;
00066   double lastDistance;
00067 };
00068 
00069 }; // namespace neighbor
00070 }; // namespace mlpack
00071 
00072 #endif

Generated on 13 Aug 2014 for MLPACK by  doxygen 1.6.1