Class LinkSqrt
- java.lang.Object
-
- dev.nm.stat.regression.linear.glm.distribution.link.LinkSqrt
-
- All Implemented Interfaces:
LinkFunction
public class LinkSqrt extends Object implements LinkFunction
This class represents the square-root link function:g(x) = sqrt(x)
- See Also:
GeneralizedLinearModel
-
-
Constructor Summary
Constructors Constructor Description LinkSqrt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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).
-
-
-
Method Detail
-
inverse
public double inverse(double x)
Description copied from interface:LinkFunction
Inverse of the link function, i.e., g-1(x).- Specified by:
inverse
in 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}{2\sqrt{x}} \]- Specified by:
derivative
in interfaceLinkFunction
- Parameters:
x
- x- Returns:
- g'(x)
-
-