Stats.RootMeanSquare Method

Definition

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

Overload List

RootMeanSquare(DateTime[]) Returns the root-mean-square of the elements of an array.
RootMeanSquare(Double[]) Returns the root-mean-square of the elements of an array.
RootMeanSquare(Int32[]) Returns the root-mean-square of the elements of an array.
RootMeanSquare(Vector<Double>) Returns the root-mean-square of the elements of a vector.

RootMeanSquare(DateTime[])

Returns the root-mean-square of the elements of an array.
C#
public static TimeSpan RootMeanSquare(
	DateTime[] values
)

Parameters

values  DateTime[]
An DateTime array.

Return Value

TimeSpan
The root-mean-square of the elements of values.

Remarks

The root-mean-square is a TimeSpan value.

Exceptions

ArgumentNullExceptionvalues is null.

RootMeanSquare(Double[])

Returns the root-mean-square of the elements of an array.
C#
public static double RootMeanSquare(
	double[] values
)

Parameters

values  Double[]
A Double array.

Return Value

Double
The root-mean-square of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

RootMeanSquare(Int32[])

Returns the root-mean-square of the elements of an array.
C#
public static double RootMeanSquare(
	int[] values
)

Parameters

values  Int32[]
An Int32 array.

Return Value

Double
The root-mean-square of the elements of values.

Remarks

The root-mean-square is a Double value.

Exceptions

ArgumentNullExceptionvalues is null.

RootMeanSquare(Vector<Double>)

Returns the root-mean-square of the elements of a vector.
C#
public static double RootMeanSquare(
	this Vector<double> values
)

Parameters

values  Vector<Double>
A vector.

Return Value

Double
The root-mean-square 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.

See Also