public override float[] PredictStrength(BaseVector x) { double[] projectedTest = MatrixUtils.VectorTimesMatrix(x, projection); float[] distances = new float[ngroups]; IDistance distance = new EuclideanDistance(); for (int j = 0; j < ngroups; j++) { distances[j] = -(float)distance.Get(projectedTest, projectedGroupMeans[j]); } return(distances); }