Class LinkCloglog
- java.lang.Object
-
- dev.nm.stat.regression.linear.glm.distribution.link.LinkCloglog
-
- All Implemented Interfaces:
LinkFunction
public class LinkCloglog extends Object implements LinkFunction
This class represents the complementary log-log link function:g(x) = log(-log(1 - x))
- See Also:
GeneralizedLinearModel
-
-
Constructor Summary
Constructors Constructor Description LinkCloglog()
-
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)
Description copied from interface:LinkFunctionInverse of the link function, i.e., g-1(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}{\log(1-x)\log(x-1)} \]- Specified by:
derivativein interfaceLinkFunction- Parameters:
x- x- Returns:
- g'(x)
-
-