def lsumdiffsquared(x,y):
    sds = 0
    for i in range(len(x)):
        sds = sds + (x[i]-y[i])**2
    return sds
Takes pairwise differences of the values in lists x and y, squares
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/lsumdiffsquared