powered by
Given two vectors, u and v, of length n, this function computes \(\sum_{i=1}^n (u_i - v_i)^2\).
ssq(u,v)
The sum of squares difference between the two vectors
One of the vectors
The other of the vectors
G P Nason
Description says all
ssq(c(1,2), c(3,4)) #[1] 8
Run the code above in your browser using DataLab