Accord.Statistics.Links.LogLogLinkFunction.Inverse C# (CSharp) Method

Inverse() public method

The Log-log mean (activation) function.
public Inverse ( double x ) : double
x double A transformed value.
return double
        public double Inverse(double x)
        {
            return Math.Exp(-Math.Exp(B * x + A));
        }

Usage Example

        public void LogLogLinkFunctionConstructorTest2()
        {
            LogLogLinkFunction target = new LogLogLinkFunction();

            Assert.AreEqual(1, target.B);
            Assert.AreEqual(0, target.A);

            for (int i = 0; i < 11; i++)
            {
                double x = i / 10.0;
                double y = Math.Log(-Math.Log(x));

                Assert.AreEqual(y, target.Function(x), 1e-10);
                Assert.AreEqual(x, target.Inverse(y), 1e-10);
            }
        }
All Usage Examples Of Accord.Statistics.Links.LogLogLinkFunction::Inverse