OnStaticIntervalDetectedListener

fun interface OnStaticIntervalDetectedListener<T : IntervalDetector<T, *, *, *, *, *, *>>

Interface to notify when a new static interval is detected. Instantaneous average measurements and standard deviation within the averaging window are provided at the time the new static interval is detected (and consequently detector ends a previous dynamic interval or its initialization stage).

Parameters

T

an implementation of IntervalDetector

Functions

Link copied to clipboard
abstract fun onStaticIntervalDetected(detector: T, instantaneousAvgX: Double, instantaneousAvgY: Double, instantaneousAvgZ: Double, instantaneousStdX: Double, instantaneousStdY: Double, instantaneousStdZ: Double)

Called when a static interval has been detected after initialization.