Click or drag to resize

StreamingStatisticsMeanStandardDeviation(IEnumerableSingle) Method

Estimates the arithmetic sample mean and the unbiased population standard deviation from the provided samples as enumerable sequence, in a single pass without memoization. On a dataset of size N will use an N-1 normalizer (Bessel's correction). Returns NaN for mean if data is empty or any entry is NaN, and NaN for standard deviation if data has less than two entries or if any entry is NaN.

Namespace: Altaxo.Calc.Statistics
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static (double Mean, double StandardDeviation) MeanStandardDeviation(
	IEnumerable<float> samples
)

Parameters

samples  IEnumerableSingle
Sample stream, no sorting is assumed.

Return Value

ValueTupleDouble, Double
A tuple containing the mean and unbiased standard deviation as double. Mean is double.NaN if the stream is empty; standard deviation is double.NaN if there are fewer than two entries or if any entry is NaN.
See Also