public final class LinkFunction extends AbstractMathematicalFunctionWrapper implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
LinkFunction.Type |
parameterBounds
Constructor and Description |
---|
LinkFunction(LinkFunction.Type type)
Public constructor.
|
LinkFunction(LinkFunction.Type type,
AbstractMathematicalFunction eta)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
getGradient()
This method returns a vector that contains the first derivatives of the function with respect to its parameters.
|
Matrix |
getHessian()
This method returns a matrix that contains the second derivatives of the function with respect to its parameters.
|
LinkFunction.Type |
getType()
Provides the type of link function.
|
java.lang.Double |
getValue()
This method provides the result of the function evaluation.
|
getBeta, getNumberOfParameters, getNumberOfVariables, getOriginalFunction, getParameterValue, getVariableValue, setBeta, setBounds, setParameterValue, setVariableValue, setX
public LinkFunction(LinkFunction.Type type)
type
- a Type enum variable that defines the type of link functionjava.security.InvalidParameterException
- if type is nullpublic LinkFunction(LinkFunction.Type type, AbstractMathematicalFunction eta)
type
- a Type enum variable that defines the type of link functioneta
- an AbstractMathematicalFunction instancejava.security.InvalidParameterException
- if type is nullpublic LinkFunction.Type getType()
public java.lang.Double getValue()
EvaluableFunction
getValue
in interface EvaluableFunction<java.lang.Double>
getValue
in class AbstractMathematicalFunctionWrapper
public Matrix getGradient()
DerivableMathematicalFunction
getGradient
in interface DerivableMathematicalFunction
getGradient
in class AbstractMathematicalFunctionWrapper
public Matrix getHessian()
DerivableMathematicalFunction
getHessian
in interface DerivableMathematicalFunction
getHessian
in class AbstractMathematicalFunctionWrapper