sumOfSquaredError

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

Return

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

Parameters

a

the first array

b

the second array