MeanEstimateIfc

A minimal interface to define an estimator that will produce an estimate of a population mean. We assume that the estimator has statistics available that represent the count, average, and variance of a sample. By default, the sample average is used as the estimate of the population mean; however, implementors may override this behavior by overriding the estimate() method.

Inheritors

Properties

Link copied to clipboard
abstract val average: Double

Gets the unweighted average of the observations.

Link copied to clipboard
abstract val count: Double

Gets the count of the number of the observations.

Link copied to clipboard

Gets the sample standard deviation of the observations. Simply the square root of variance

Link copied to clipboard
abstract val variance: Double

Gets the sample variance of the observations.

Functions

Link copied to clipboard
open override fun estimate(): Double