27 #ifndef MPBLOCKS_KD_TREE_R2_S1_DISTANCE_H_
28 #define MPBLOCKS_KD_TREE_R2_S1_DISTANCE_H_
37 template <
class Traits>
44 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
73 #endif // DEFAULTDISTANCE_H_
Traits::HyperRect Hyper_t
Traits::Format_t Format_t
Format_t m_max
max interval
Format_t m_weight
weight of s1 in group metric,
provides r2_s1 distance computation
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
void configure(Format_t min, Format_t max, Format_t weight)
double Format_t
number format (i.e. double, float)
Format_t operator()(const Point_t &pa, const Point_t &pb)
return the r2_s1 distance between two points
Format_t m_min
min interval
an NDim dimensional hyperrectangle, represented as a min and max extent