def getTripletScore(X,q):
    i,j,k = q

    return dot(X[j],X[j]) -2*dot(X[j],X[k]) + 2*dot(X[i],X[k]) - dot(X[i],X[i])
Given X,q=[i,j,k] returns score = ||x_j - x_k||^2 - ||x_i - x_k||^2
dataset/ETHPy150Open nextml/NEXT/next/apps/PoolBasedTripletMDS/algs/RandomSampling/utilsMDS.py/getTripletScore