Returns the sample variance of the given data set and associated
weights.
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function GetSampleVariance ( _
x As Double(), _
weight As Double() _
) As Double |
Visual C++ |
---|
public:
static double GetSampleVariance(
array<double>^ x,
array<double>^ weight
) |
Parameters
- x
- Type: array<
System..::.Double
>[]()[]
A double array containing the data set whose sample 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 sample variance of the given data
set.
See Also