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(
	DoubleVector data,
	BiasType type
)
Visual Basic (Declaration)
Public Shared Function Variance ( _
	data As DoubleVector, _
	type As BiasType _
) As Double
Visual C++
public:
static double Variance(
	DoubleVector^ data, 
	BiasType type
)

Return Value

Variance.

Exceptions

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

See Also