Class LinkLogit

    • Constructor Detail

      • LinkLogit

        public LinkLogit()
    • Method Detail

      • inverse

        public double inverse​(double x)
        Inverse of the link function, i.e., g-1(x). \[ g^{-1}(x) = \frac{\exp(x)}{1+\exp(x)} \]
        Specified by:
        inverse in interface LinkFunction
        Parameters:
        x - x
        Returns:
        g-1(x)
      • derivative

        public double derivative​(double x)
        Derivative of the link function, i.e., g'(x). \[ g'(x) = \frac{1}{x(1-x)} \]
        Specified by:
        derivative in interface LinkFunction
        Parameters:
        x - x
        Returns:
        g'(x)