public interface RangingFilter extends Configurable
Modifier and Type | Method and Description |
---|---|
double[] |
filter(double[] measuredDistances,
double[] realDistances,
long timestamp)
Filter measured distances to anchors.
|
String |
getName()
Gets a readable name of the ranging filter for display reasons.
|
void |
reset()
Resets the ranging to initial state.
|
configure, isConfigurable
String getName()
double[] filter(double[] measuredDistances, double[] realDistances, long timestamp)
Entries in the measured distances might be -1
if measurement to
the corresponding anchor failed!
The filter must also return -1
if measurement stayed in failed
status!
measuredDistances
- The measured distances to the anchor nodes in
meters or -1
if measurement failed.realDistances
- The real distances to the anchor nodes in meters or
null
if not available.timestamp
- Timestamp in milliseconds or -1
if no timestamp
is available.void reset()
Copyright © 2012 Thomas Hillebrandt. All Rights Reserved.