public class Logit extends java.lang.Object implements LinkFunction
mu
g(x) = log(--------)
1 - mu
GeneralizedLinearModel,
Serialized Form| Constructor and Description |
|---|
Logit() |
| Modifier and Type | Method and Description |
|---|---|
double |
derivative(double x)
Derivative of the link function, i.e.,
g'(x). |
double |
inverse(double x)
Inverse of the link function, i.e.,
g-1(x). |
public double inverse(double x)
g-1(x).
exp(x)
g_inv(x) = ------------
1 + exp(x)
inverse in interface LinkFunctionx - xpublic double derivative(double x)
g'(x).
1
g'(x) = -----------
x (1 - x)
derivative in interface LinkFunctionx - x