Accord.Statistics.Links.LogitLinkFunction.Log C# (CSharp) Method

Log() public method

The logarithm of the inverse of the link function.
public Log ( double x ) : double
x double A transformed value.
return double
        public double Log(double x)
        {
            double z = B * x + A;
            return Math.Log(1.0) - Math.Log(1.0 + Math.Exp(-z)); // TODO: Log 1+z
        }