StatisticSamples

Description

sealed class Tinman.Core.Math.StatisticSamples

Derived from

DequeBase<float64> abstract

Helper class for quickly collecting statistic samples (i.e. 64-bit floating-point numbers) and computing simple statistic values from them.

Public / Constructors

Statistic​Samples


public constructor StatisticSamples → ()

Creates a new instance of StatisticSamples.

Public / Methods

Add


public method Add → (2)

element in : float64

The value to add.

maxCount opt : int32 = Maths.MaxInt

[>0]
The maximum number of values to keep (including element in). Defaults to Maths.MaxInt.

Adds a value.

Public / Attributes

Deviation


public attribute Deviation → (get)

value : float64

The deviation.

Returns the deviation of the collected samples.

Gauss


public attribute Gauss → (get)

value : Gauss

The Gauss curve.

Returns a Gauss curve that resembles the distribution of the collected samples.

Maximum


public attribute Maximum → (get)

value : float64

The maximum value.

Returns the maximum value of the collected samples.

Mean


public attribute Mean → (get)

value : float64

The mean value.

Returns the mean value of the collected samples.

Minimum


public attribute Minimum → (get)

value : float64

The minimum value.

Returns the minimum value of the collected samples.

Variance


public attribute Variance → (get)

value : float64

The variance.

Returns the variance of the collected samples.