Returns the variance of the elements of an array.
Namespace: Extreme.StatisticsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static double Variance<T>(
this T[] values
)
<ExtensionAttribute>
Public Shared Function Variance(Of T) (
values As T()
) As Double
public:
[ExtensionAttribute]
generic<typename T>
static double Variance(
array<T>^ values
)
[<ExtensionAttribute>]
static member Variance :
values : 'T[] -> float
Parameters
- values
- Type: T
A Double array.
Type Parameters
- T
Return Value
Type:
DoubleThe variance of the elements of
values.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Numerical Libraries
Supported in: 6.0
Reference