Пример #1
0
        private static Tuple <double, double> VectorErrorRate(SimpleMatrix output, SimpleMatrix answer)
        {
            var diff = output - answer;
            var b    = SimpleMatrix.Norm2(diff);
            var c    = SimpleMatrix.Norm2(answer);
            var d    = b / c;

            return(new Tuple <double, double>(d, SimpleMatrix.MaxAbsMember(diff)));
        }