MatrixMathSumOfSquaredDifferences Method |
Returns the sum of the squares of differences of elements of a and b.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double SumOfSquaredDifferences(
IROMatrix<double> a,
IROMatrix<double> b
)
Parameters
- a IROMatrixDouble
- The first matrix.
- b IROMatrixDouble
- The second matrix. Must have same dimensions than a.
Return Value
DoubleThe sum of the squared differences of each element in a to the corresponding element in b, i.e. Sum[(a[i,j]-b[i,j])²].
See Also