Encog.MathUtil.LIBSVM.Kernel.tanh C# (CSharp) Method

tanh() private static method

private static tanh ( double x ) : double
x double
return double
        private static double tanh(double x)
        {
            double e = Math.Exp(x);
            return 1.0 - 2.0/(e*e + 1);
        }