sumOfSquaredError

Subtracts the arrays element by element. Arrays must have same length and must not be empty. Computes the sum of the squares of the differences.

Return

the sum of (ai-bi)^2 for the elements

Parameters

a

the first array

b

the second array