示例#1
0
        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);
        }