2012-02-06 16:44:09 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the Owl Positioning System (OwlPS).
|
|
|
|
* OwlPS is a project of the University of Franche-Comté
|
|
|
|
* (Université de Franche-Comté), France.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2010-03-22 13:47:19 +01:00
|
|
|
#include "interlinknetworks.hh"
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-09 12:11:26 +02:00
|
|
|
float InterlinkNetworks::
|
|
|
|
estimate_distance(const Measurement &measurement)
|
2010-03-22 13:47:19 +01:00
|
|
|
{
|
2010-06-09 12:11:26 +02:00
|
|
|
double constant_term = make_constant_term(measurement) ;
|
2010-03-22 13:47:19 +01:00
|
|
|
const float &average_ss = measurement.get_average_ss() ;
|
|
|
|
return pow(10, (constant_term - average_ss) / 35) ;
|
|
|
|
}
|