public class CurveFittedDistanceCalculator extends Object implements DistanceCalculator
ModelSpecificDistanceCalculator for more information on the coefficients.
Created by dyoung on 8/28/14.| Constructor and Description |
|---|
CurveFittedDistanceCalculator(double coefficient1,
double coefficient2,
double coefficient3)
Construct a calculator with coefficients specific for the device's signal vs.
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateDistance(int txPower,
double rssi)
Calculated the estimated distance in meters to the beacon based on a reference rssi at 1m
and the known actual rssi at the current location
|
public static final String TAG
public CurveFittedDistanceCalculator(double coefficient1,
double coefficient2,
double coefficient3)
coefficient1 - coefficient2 - coefficient3 - public double calculateDistance(int txPower,
double rssi)
calculateDistance in interface DistanceCalculatortxPower - rssi -