Click or drag to resize

MatrixMathSumOfSquaredDifferences Method

Returns the sum of the squares of differences of elements of a and b.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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

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