Stats.Sum Of Squares Method
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Sum | Returns the sum of the squares of the elements of an array. |
Sum | Returns the sum of the squares of the elements of an array. |
Sum | Returns the sum of the squares of the elements of an array. |
Sum | Returns the sum of the squares of the observations in a Vector<T>. |
SumOfSquares(Double[])
Returns the sum of the squares of the elements of an array.
public static double SumOfSquares(
double[] values
)
Parameters
Return Value
DoubleThe sum of the squares of the elements of values.
Exceptions
Argument | values is null. |
SumOfSquares(IEnumerable<Double>)
Returns the sum of the squares of the elements of an array.
public static double SumOfSquares(
IEnumerable<double> values
)
Parameters
- values IEnumerable<Double>
- An object that implements IEnumerable<Double>.
Return Value
DoubleThe sum of the squares of the elements of values.
Exceptions
Argument | values is null. |
SumOfSquares(Int32[])
Returns the sum of the squares of the elements of an array.
public static double SumOfSquares(
int[] values
)
Parameters
Return Value
DoubleThe sum of the squares of the elements of values.
Exceptions
Argument | values is null. |
SumOfSquares<T>(Vector<T>)
Returns the sum of the squares of the observations in a Vector<T>.
public static T SumOfSquares<T>(
Vector<T> values
)
Parameters
Type Parameters
- T
Return Value
TThe sum of the squares of the observations in values.
Exceptions
Argument | values is null. |