public class CompositeLogLikelihood extends AbstractMathematicalFunctionWrapper
parameterBounds
Constructor and Description |
---|
CompositeLogLikelihood(IndividualLogLikelihood innerLogLikelihoodFunction,
Matrix xValues,
Matrix yValues) |
Modifier and Type | Method and Description |
---|---|
Matrix |
getBeta()
This method returns the vector of parameters.
|
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.
|
IndividualLogLikelihood |
getOriginalFunction()
This method returns the original function.
|
Matrix |
getPredictions()
This method returns all the predicted values.
|
java.lang.Double |
getValue()
This method provides the result of the function evaluation.
|
void |
setBeta(Matrix beta)
This method sets the vector of parameters.
|
protected void |
setValuesInLikelihoodFunction(int index) |
getNumberOfParameters, getNumberOfVariables, getParameterValue, getVariableValue, setBounds, setParameterValue, setVariableValue, setX
public CompositeLogLikelihood(IndividualLogLikelihood innerLogLikelihoodFunction, Matrix xValues, Matrix yValues)
public IndividualLogLikelihood getOriginalFunction()
AbstractMathematicalFunctionWrapper
getOriginalFunction
in class AbstractMathematicalFunctionWrapper
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
protected void setValuesInLikelihoodFunction(int index)
public Matrix getPredictions()
public void setBeta(Matrix beta)
AbstractMathematicalFunction
setBeta
in class AbstractMathematicalFunctionWrapper
beta
- a Matrix instancepublic Matrix getBeta()
AbstractMathematicalFunction
getBeta
in class AbstractMathematicalFunctionWrapper