typedef float rvec[3]; float calc_similar_ind (int nind, rvec x[]) { int i, j, d; float m, tm, xd, rd; for(j=0; j