KalmanSmoother

class KalmanSmoother(processNoiseMetersPerSec: Double = 1.0)

Lightweight Kalman-like GPS smoother, operates on lat/lng separately, uses time delta to increase process uncertainty. Pure Kotlin, no Android dependencies.

Constructors

Link copied to clipboard
constructor(processNoiseMetersPerSec: Double = 1.0)

Functions

Link copied to clipboard
fun reset()
Link copied to clipboard
fun smooth(measuredLat: Double, measuredLng: Double, accuracyMeters: Float, timestampMs: Long): Pair<Double, Double>

Smooth a new GPS measurement.