-
- All Implemented Interfaces:
-
org.altbeacon.beacon.service.RssiFilter
public class RunningAverageRssiFilter implements RssiFilter
Calculate a RSSI value on base of an arbitrary list of measured RSSI values The list is clipped by a certain length at start and end and the average is calculate by simple arithmetic average
-
-
Field Summary
Fields Modifier and Type Field Description public final static long
DEFAULT_SAMPLE_EXPIRATION_MILLISECONDS
private static long
sampleExpirationMilliseconds
-
Method Summary
Modifier and Type Method Description static long
getSampleExpirationMilliseconds()
static void
setSampleExpirationMilliseconds(long newSampleExpirationMilliseconds)
void
addMeasurement(Integer rssi)
boolean
noMeasurementsAvailable()
int
getMeasurementCount()
double
calculateRssi()
-
-
Method Detail
-
getSampleExpirationMilliseconds
static long getSampleExpirationMilliseconds()
-
setSampleExpirationMilliseconds
static void setSampleExpirationMilliseconds(long newSampleExpirationMilliseconds)
-
addMeasurement
void addMeasurement(Integer rssi)
-
noMeasurementsAvailable
boolean noMeasurementsAvailable()
-
getMeasurementCount
int getMeasurementCount()
-
calculateRssi
double calculateRssi()
-
-
-
-