cheshirekow  v0.1.0
mpblocks::kd_tree::r2_s1::Distance< Traits > Struct Template Reference

provides r2_s1 distance computation More...

#include <mpblocks/kd_tree/r2_s1/Distance.h>

Public Types

typedef Traits::Format_t Format_t
 
typedef Traits::HyperRect Hyper_t
 
typedef Eigen::Matrix
< Format_t, Traits::NDim, 1 > 
Point_t
 

Public Member Functions

void configure (Format_t min, Format_t max, Format_t weight)
 
 Distance ()
 
 Distance (Format_t min, Format_t max, Format_t weight)
 
Format_t operator() (const Point_t &pa, const Point_t &pb)
 return the r2_s1 distance between two points More...
 
Format_t operator() (const Point_t &p, const Hyper_t &h)
 return the r2_s1 distance between a point and hyper rectangle More...
 

Private Attributes

Format_t m_max
 max interval More...
 
Format_t m_min
 min interval More...
 
Format_t m_weight
 weight of s1 in group metric, More...
 

Detailed Description

template<class Traits>
struct mpblocks::kd_tree::r2_s1::Distance< Traits >

provides r2_s1 distance computation

Definition at line 38 of file Distance.h.

Member Typedef Documentation

Definition at line 41 of file Distance.h.

Definition at line 42 of file Distance.h.

template<class Traits >
typedef Eigen::Matrix<Format_t,Traits::NDim,1> mpblocks::kd_tree::r2_s1::Distance< Traits >::Point_t

Definition at line 44 of file Distance.h.

Constructor & Destructor Documentation

template<class Traits >
mpblocks::kd_tree::r2_s1::Distance< Traits >::Distance ( )

Definition at line 37 of file Distance.hpp.

template<class Traits >
mpblocks::kd_tree::r2_s1::Distance< Traits >::Distance ( Format_t  min,
Format_t  max,
Format_t  weight 
)

Definition at line 44 of file Distance.hpp.

Member Function Documentation

template<class Traits >
void mpblocks::kd_tree::r2_s1::Distance< Traits >::configure ( Format_t  min,
Format_t  max,
Format_t  weight 
)

Definition at line 51 of file Distance.hpp.

template<class Traits >
Traits::Format_t mpblocks::kd_tree::r2_s1::Distance< Traits >::operator() ( const Point_t pa,
const Point_t pb 
)

return the r2_s1 distance between two points

Definition at line 63 of file Distance.hpp.

template<class Traits >
Traits::Format_t mpblocks::kd_tree::r2_s1::Distance< Traits >::operator() ( const Point_t p,
const Hyper_t h 
)

return the r2_s1 distance between a point and hyper rectangle

Definition at line 87 of file Distance.hpp.

Member Data Documentation

template<class Traits >
Format_t mpblocks::kd_tree::r2_s1::Distance< Traits >::m_max
private

max interval

Definition at line 48 of file Distance.h.

template<class Traits >
Format_t mpblocks::kd_tree::r2_s1::Distance< Traits >::m_min
private

min interval

Definition at line 47 of file Distance.h.

template<class Traits >
Format_t mpblocks::kd_tree::r2_s1::Distance< Traits >::m_weight
private

weight of s1 in group metric,

Definition at line 49 of file Distance.h.


The documentation for this struct was generated from the following files: