Calculates the variance of the given data, using the specified bias type.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public static double Variance(
	int[] data,
	BiasType type
)
Visual Basic (Declaration)
Public Shared Function Variance ( _
	data As Integer(), _
	type As BiasType _
) As Double
Visual C++
public:
static double Variance(
	array<int>^ data, 
	BiasType type
)

Parameters

data
Type: array< System..::.Int32 >[]()[]
An array of integers.
type
Type: CenterSpace.NMath.Stats..::.BiasType
Bias type.

Return Value

Variance.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if data has a length of zero.

See Also