Calculates the sum of squared errors (SSE) of the elements in
the given data set.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static double SumOfSquaredErrors( int[] data ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function SumOfSquaredErrors ( _ data As Integer() _ ) As Double |
| Visual C++ |
|---|
public: static double SumOfSquaredErrors( array<int>^ data ) |
Parameters
- data
- Type: array<
System..::.Int32
>[]()[]
An array of integers.
Return Value
Sum of squared errors (SSE).
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if data has a length of zero. |