public class FGMCompositeLogLikelihood extends CompositeLogLikelihood implements OptimizerListener
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.util.List<java.lang.Integer>,Matrix> |
additionalGradients |
protected boolean |
additionalGradientTermUptoDate |
protected java.util.Map<java.util.List<java.lang.Integer>,Matrix> |
additionalHessians |
protected boolean |
additionalHessianTermUptoDate |
protected java.util.Map<java.util.List<java.lang.Integer>,java.lang.Double> |
additionalLlkTerm |
protected boolean |
additionalLlkTermUptoDate |
protected CopulaExpression |
copulaExpression |
protected Matrix |
gradientVector |
protected boolean |
gradientVectorUptoDate |
protected Matrix |
hessianMatrix |
protected boolean |
hessianMatrixUptoDate |
protected HierarchicalStatisticalDataStructure |
hierarchicalStructure |
protected double |
llk |
protected boolean |
llkUptoDate |
parameterBounds
optimizationEnded, optimizationStarted
Modifier | Constructor and Description |
---|---|
protected |
FGMCompositeLogLikelihood(IndividualLogLikelihood innerLogLikelihoodFunction,
Matrix xValues,
Matrix yValues,
HierarchicalStatisticalDataStructure hierarchicalStructure,
CopulaExpression copulaExpression) |
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.
|
double |
getParameterValue(int index)
This method retrieve the parameter defined by the parameterName parameter.
|
java.lang.Double |
getValue()
This method provides the result of the function evaluation.
|
void |
optimizerDidThis(java.lang.String actionString) |
protected void |
reset() |
void |
setParameterValue(int index,
double value)
This method sets the parameter value.
|
getBeta, getOriginalFunction, getPredictions, setBeta, setValuesInLikelihoodFunction
getNumberOfParameters, getNumberOfVariables, getVariableValue, setBounds, setVariableValue, setX
protected double llk
protected boolean llkUptoDate
protected java.util.Map<java.util.List<java.lang.Integer>,java.lang.Double> additionalLlkTerm
protected boolean additionalLlkTermUptoDate
protected Matrix gradientVector
protected boolean gradientVectorUptoDate
protected java.util.Map<java.util.List<java.lang.Integer>,Matrix> additionalGradients
protected boolean additionalGradientTermUptoDate
protected Matrix hessianMatrix
protected boolean hessianMatrixUptoDate
protected java.util.Map<java.util.List<java.lang.Integer>,Matrix> additionalHessians
protected boolean additionalHessianTermUptoDate
protected final HierarchicalStatisticalDataStructure hierarchicalStructure
protected final CopulaExpression copulaExpression
protected FGMCompositeLogLikelihood(IndividualLogLikelihood innerLogLikelihoodFunction, Matrix xValues, Matrix yValues, HierarchicalStatisticalDataStructure hierarchicalStructure, CopulaExpression copulaExpression)
protected void reset()
public Matrix getGradient()
DerivableMathematicalFunction
getGradient
in interface DerivableMathematicalFunction
getGradient
in class CompositeLogLikelihood
public Matrix getHessian()
DerivableMathematicalFunction
getHessian
in interface DerivableMathematicalFunction
getHessian
in class CompositeLogLikelihood
public java.lang.Double getValue()
EvaluableFunction
getValue
in interface EvaluableFunction<java.lang.Double>
getValue
in class CompositeLogLikelihood
public double getParameterValue(int index)
AbstractMathematicalFunction
getParameterValue
in class AbstractMathematicalFunctionWrapper
index
- the index of the parameter to be retrievedpublic void setParameterValue(int index, double value)
AbstractMathematicalFunction
setParameterValue
in class AbstractMathematicalFunctionWrapper
index
- the parameter indexvalue
- the parameter valuepublic void optimizerDidThis(java.lang.String actionString)
optimizerDidThis
in interface OptimizerListener