Stats.Variance Method
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Variance<T>(IEnumerable<T>) | Returns the variance of the elements of a sequence. |
Variance<T>(T[]) | Returns the variance of the elements of an array. |
Variance<T>(Vector<T>) | Returns the variance of the elements of a vector. |
Variance<T>(IEnumerable<T>)
Returns the variance of the elements of a sequence.
public static double Variance<T>(
IEnumerable<T> values
)
Parameters
- values IEnumerable<T>
- An object that implements IEnumerable<Double>.
Type Parameters
- T
Return Value
DoubleThe variance of the elements of values.
Exceptions
ArgumentNullException | values is null. |
Variance<T>(T[])
Returns the variance of the elements of an array.
public static double Variance<T>(
this T[] values
)
Parameters
- values T[]
- A Double array.
Type Parameters
- T
Return Value
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 T[]. 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).Exceptions
ArgumentNullException | values is null. |
Variance<T>(Vector<T>)
Returns the variance of the elements of a vector.
public static double Variance<T>(
this Vector<T> values
)
Parameters
- values Vector<T>
- A vector.
Type Parameters
- T
Return Value
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 Vector<T>. 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).Exceptions
ArgumentNullException | values is null. |