Class LinkLogit
- java.lang.Object
-
- dev.nm.stat.regression.linear.glm.distribution.link.LinkLogit
-
- All Implemented Interfaces:
LinkFunction
public class LinkLogit extends Object implements LinkFunction
This class represents the logit link function: \[ g(x) = \log(\frac{\mu}{1-\mu}) \]- See Also:
GeneralizedLinearModel
-
-
Constructor Summary
Constructors Constructor Description LinkLogit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublederivative(double x)Derivative of the link function, i.e., g'(x).doubleinverse(double x)Inverse of the link function, i.e., g-1(x).
-
-
-
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:
inversein interfaceLinkFunction- 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:
derivativein interfaceLinkFunction- Parameters:
x- x- Returns:
- g'(x)
-
-