Stats.StandardDeviation Method

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

StandardDeviation(DateTime[]) Returns the standard deviation of the elements of an array.
StandardDeviation(Double[]) Returns the standard deviation of the elements of an array.
StandardDeviation(IEnumerable<Double>) Returns the standard deviation of the elements of an array.
StandardDeviation(Int32[]) Returns the standard deviation of the elements of an array.
StandardDeviation(Vector<DateTime>) Returns the standard deviation of the elements of a numerical variable.
StandardDeviation(Vector<Double>) Returns the standard deviation of the elements of a vector.
StandardDeviation<T>(Vector<T>) Returns the standard deviation of the elements of a vector.

StandardDeviation(DateTime[])

Returns the standard deviation of the elements of an array.
C#
public static TimeSpan StandardDeviation(
	DateTime[] values
)

Parameters

values  DateTime[]
An DateTime array.

Return Value

TimeSpan
The standard deviation of the elements of values.

Remarks

The standard deviation is a TimeSpan value.

Exceptions

ArgumentNullExceptionvalues is null.

StandardDeviation(Double[])

Returns the standard deviation of the elements of an array.
C#
public static double StandardDeviation(
	double[] values
)

Parameters

values  Double[]
A Double array.

Return Value

Double
The standard deviation of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

StandardDeviation(IEnumerable<Double>)

Returns the standard deviation of the elements of an array.
C#
public static double StandardDeviation(
	IEnumerable<double> values
)

Parameters

values  IEnumerable<Double>
An object that implements IEnumerable<Double>.

Return Value

Double
The standard deviation of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

StandardDeviation(Int32[])

Returns the standard deviation of the elements of an array.
C#
public static double StandardDeviation(
	int[] values
)

Parameters

values  Int32[]
An Int32 array.

Return Value

Double
The standard deviation of the elements of values.

Remarks

The standard deviation is a Double value.

Exceptions

ArgumentNullExceptionvalues is null.

StandardDeviation(Vector<DateTime>)

Returns the standard deviation of the elements of a numerical variable.
C#
public static TimeSpan StandardDeviation(
	this Vector<DateTime> values
)

Parameters

values  Vector<DateTime>
A Vector<T> of DateTime.

Return Value

TimeSpan
The standard deviation 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<DateTime>. 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

ArgumentNullExceptionvalues is null.

StandardDeviation(Vector<Double>)

Returns the standard deviation of the elements of a vector.
C#
public static double StandardDeviation(
	this Vector<double> values
)

Parameters

values  Vector<Double>
A vector.

Return Value

Double
The standard deviation 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<Double>. 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

ArgumentNullExceptionvalues is null.

StandardDeviation<T>(Vector<T>)

Returns the standard deviation of the elements of a vector.
C#
public static double StandardDeviation<T>(
	this Vector<T> values
)

Parameters

values  Vector<T>
A vector.

Type Parameters

T

Return Value

Double
The standard deviation 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

ArgumentNullExceptionvalues is null.

See Also