Click or drag to resize

NMathFunctionsTrimmedMean(DoubleVector, Double) Method

Calculates the mean of the given data after the specified trimming.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double TrimmedMean(
	DoubleVector data,
	double trim
)

Parameters

data  DoubleVector
A vector.
trim  Double
Trim.

Return Value

Double
Trimmed mean.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data has a length of zero.
Remarks
A trim of 0.0 results in the mean, 1.0 in the median.
See Also