public class TrackSmoother extends Object
Modifier and Type | Class and Description |
---|---|
class |
TrackSmoother.KalmanLatLong |
Modifier and Type | Method and Description |
---|---|
static TrackSmoother |
getInstance()
Returns the one and only instance of this class.
|
void |
resetSmoothing(List<ActivitySegment> segments)
This method resets the smoothing
|
void |
smoothTrack(List<ActivitySegment> segments,
float trackSmoothingQFactor)
This method smoothes the track, by applying a Kalman filter
|
public static TrackSmoother getInstance()
public void smoothTrack(List<ActivitySegment> segments, float trackSmoothingQFactor)
trackSmoothingQFactor
- The factor influencing the smoothing.
1.0 - high amount to 10.0 - lowsegments
- Track segments making up the trackpublic void resetSmoothing(List<ActivitySegment> segments)
segments
- List of segments making up the activity/trackCopyright © 2019. All rights reserved.