Public Member Functions | Private Attributes
org.ros.time.RemoteUptimeClock.LatencyOutlierFilter Class Reference

List of all members.

Public Member Functions

boolean add (double latency)
double getMedian ()
 LatencyOutlierFilter (int sampleSize, double threshold)

Private Attributes

final Queue< Double > latencies
final int sampleSize
final double threshold

Detailed Description

Uses a sliding window and percentile range to detect latency outliers.

When receiving remote uptime measurements, the latency of the measurement is used to estimate the local uptime at the point when the remote uptime was measured. This calculation assumes that any measurement latency is symmetrical. The larger the latency, the larger the potential error in our estimate of local uptime at the measured remote uptime.

To reduce the effect of measurements with higher uncertainty, we filter out measurements with latencies that exceed the specified percentile within our sliding window.

Definition at line 117 of file RemoteUptimeClock.java.


Constructor & Destructor Documentation

org.ros.time.RemoteUptimeClock.LatencyOutlierFilter.LatencyOutlierFilter ( int  sampleSize,
double  threshold 
) [inline]

Definition at line 123 of file RemoteUptimeClock.java.


Member Function Documentation

boolean org.ros.time.RemoteUptimeClock.LatencyOutlierFilter.add ( double  latency) [inline]
Parameters:
latency
Returns:
 true 
if the provided latency is outside the configured percentile,
 false 
otherwise

Definition at line 136 of file RemoteUptimeClock.java.

Definition at line 151 of file RemoteUptimeClock.java.


Member Data Documentation

Definition at line 121 of file RemoteUptimeClock.java.

Definition at line 119 of file RemoteUptimeClock.java.

Definition at line 120 of file RemoteUptimeClock.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51