BaseAccumulatedEstimator

Base implementation containing common logic for all estimators.

Inheritors

Constructors

Link copied to clipboard
constructor(maxSamples: Int = DEFAULT_MAX_SAMPLES, maxDurationMillis: Long = DEFAULT_MAX_DURATION_MILLIS, stopMode: StopMode = StopMode.MAX_SAMPLES_OR_DURATION)

Constructor.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Gets average time interval between measurements expressed in seconds (s). This is only available when estimation completes successfully and resultAvailable is true.

Link copied to clipboard

Gets average time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.

Link copied to clipboard
val elapsedTime: Time

Gets amount of elapsed time to compute sensor noise, either if computation succeeds or not.

Link copied to clipboard

Gets amount of elapsed time to compute sensor noise estimation expressed in nanoseconds (ns), either if computation succeeds or not.

Link copied to clipboard

Gets maximum duration expressed in milliseconds to take into account before completion. This is only taken into account if using either StopMode.MAX_DURATION_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.

Link copied to clipboard

Gets maximum number of samples to take into account before completion. This is only taken into account if using either StopMode.MAX_SAMPLES_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.

Link copied to clipboard

Number of measurements that have been processed.

Link copied to clipboard

Indicates whether estimated average and time interval between measurements are available or not.

Link copied to clipboard

Indicates whether estimated result is unreliable or not.

Link copied to clipboard

Determines when this estimator will consider its estimation completed.

Link copied to clipboard

Gets estimated standard deviation of time interval between measurements expressed in seconds (s). This is only available when estimation completes successfully and resultAvailable is true.

Link copied to clipboard

Gets estimated standard deviation of time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.

Link copied to clipboard

Gets estimated variance of time interval between measurements expressed in squared seconds (s^2). This is only available when estimation completes successfully and resultAvailable is true.

Functions

Link copied to clipboard

Gets average time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.

Link copied to clipboard
fun getElapsedTime(result: Time)

Gets amount of time elapsed, either if computation succeeds or not.

Link copied to clipboard

Gets estimated standard deviation of time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.