owlps/owlps-positioning/src/minmax.hh

30 lines
715 B
C++
Raw Normal View History

#ifndef _OWLPS_POSITIONING_MINMAX_HH_
#define _OWLPS_POSITIONING_MINMAX_HH_
#include "multilaterationmethod.hh"
/// Multilaterates using the Lassabe's MinMax algorithm
class MinMax: public MultilaterationMethod
{
protected:
const Point3D &start ;
const Point3D &stop ;
float step ;
static const float MINMAX_DEFAULT_STEP = 0.5 ;
static const float INFINITE = 1000000 ;
public:
MinMax(const Point3D &_start,
const Point3D &_stop,
const float _step = MINMAX_DEFAULT_STEP):
start(_start), stop(_stop), step(_step) {}
~MinMax(void) {}
Point3D multilaterate(
const std::tr1::unordered_map<AccessPoint*, float> &ap_distances) ;
} ;
#endif // _OWLPS_POSITIONING_MINMAX_HH_