R5Instantaneous

class R5Instantaneous(metric: InstantaneousMetric, k: Int = 19, period: Int = 500) : R5SteadyStateDetector

A steady state detector for instantaneous metrics, using R5SteadyStateDetector

Parameters

k

the number of crossings to wait for

period

the number of samples to look at before resetting the window

Constructors

Link copied to clipboard
constructor(metric: InstantaneousMetric, k: Int = 19, period: Int = 500)

Functions

Link copied to clipboard
override fun isSteady(currentTime: Instant): Boolean

Takes a time and returns true if the metric is steady.