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)
One of the vectors
The other of the vectors
The sum of squares difference between the two vectors
Description says all
# NOT RUN { ssq(c(1,2), c(3,4)) #[1] 8 # }
Run the code above in your browser using DataLab