#ifndef _TREATMENT_HH_ #define _TREATMENT_HH_ #include #include #include #include #include "point.hh" #include "measurement.hh" #include "accesspoint.hh" #include "referencepoint.hh" #define LIGHT_SPEED 300000000 #define MINMAX_STEP 0.5 #define MINMAX_X_START 0.5 #define MINMAX_Y_START 0.5 #define MINMAX_Z_START 0 #define MINMAX_X_STOP 10 #define MINMAX_Y_STOP 31.5 #define MINMAX_Z_STOP 6 using namespace std; class Treatment { private: vector access_point_list; vector reference_point_list; public: Treatment(vector access_point, vector reference_point) { access_point_list = access_point; reference_point_list = reference_point; }; ~Treatment() { access_point_list.clear(); }; bool apExists(const string &)const; unsigned int apIndex(const string &)const; vector getkClosestInSs(const vector &m, const unsigned int &k, const Point *point_ignored)const; Point kPointsAverage(const vector &vp)const; Point fbcm(const vector &m, const int &client_idx)const; Point fbcm_friis( const vector &m, const vector friis_idx_list, const float &z)const; Point interlink(const vector &m, const int &client_idx)const; vector computeFriisFromRefList(const Point &p, const vector &m); Point getkWeightedInSs(const vector &m, const unsigned int &k, const Point *point_ignored)const ; }; #endif