Returns the population variance of the given data set and associated weights.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double GetVariance(
	double[] x,
	double[] weight
)
Visual Basic (Declaration)
Public Shared Function GetVariance ( _
	x As Double(), _
	weight As Double() _
) As Double
Visual C++
public:
static double GetVariance(
	array<double>^ x, 
	array<double>^ weight
)

Parameters

x
Type: array< System..::.Double >[]()[]
A double array containing the data set whose population variance is to be found.
weight
Type: array< System..::.Double >[]()[]
A double array containing the weights associated with the data points x.

Return Value

A double which specifies the population variance of the given data set.

See Also