OnDynamicIntervalDetectedListener

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

Interface to notify when a dynamic interval is detected. Accumulated average measurements and standard deviations through the complete previous static or initialization interval are provided, along with the windowed average and standard deviation of measurements at the time the new dynamic interval is detected (where the detector ends a previous static interval or initialization stage).

Parameters

T

an implementation of IntervalDetector

Functions

Link copied to clipboard
abstract fun onDynamicIntervalDetected(detector: T, instantaneousAvgX: Double, instantaneousAvgY: Double, instantaneousAvgZ: Double, instantaneousStdX: Double, instantaneousStdY: Double, instantaneousStdZ: Double, accumulatedAvgX: Double, accumulatedAvgY: Double, accumulatedAvgZ: Double, accumulatedStdX: Double, accumulatedStdY: Double, accumulatedStdZ: Double)

Called when a dynamic interval has been detected after initialization.