Click or drag to resize

StatisticsMean(IReadOnlyListDouble, Boolean) Method

Calculates the arithmetic mean of the sequence, optionally ignoring NaN values.

Namespace: Altaxo.Calc.Probability
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double Mean(
	this IReadOnlyList<double> x,
	bool ignoreNaN
)

Parameters

x  IReadOnlyListDouble
The data values.
ignoreNaN  Boolean
If , NaN values are ignored. If , an ArgumentException is thrown when a NaN is encountered.

Return Value

Double
The arithmetic mean of the (filtered) data.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyListDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also