Click or drag to resize

StreamingStatisticsHarmonicMean(IEnumerableSingle) Method

Evaluates the harmonic mean of the enumerable, in a single pass without memoization. Returns NaN if data is empty or 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 HarmonicMean(
	IEnumerable<float> stream
)

Parameters

stream  IEnumerableSingle
Sample stream, no sorting is assumed.

Return Value

Double
The harmonic mean of the stream as double, or double.NaN if the stream is empty or contains NaN.
See Also