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 |
parameterBoundsoptimizationEnded, 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, setValuesInLikelihoodFunctiongetNumberOfParameters, getNumberOfVariables, getVariableValue, setBounds, setVariableValue, setXprotected 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()
DerivableMathematicalFunctiongetGradient in interface DerivableMathematicalFunctiongetGradient in class CompositeLogLikelihoodpublic Matrix getHessian()
DerivableMathematicalFunctiongetHessian in interface DerivableMathematicalFunctiongetHessian in class CompositeLogLikelihoodpublic java.lang.Double getValue()
EvaluableFunctiongetValue in interface EvaluableFunction<java.lang.Double>getValue in class CompositeLogLikelihoodpublic double getParameterValue(int index)
AbstractMathematicalFunctiongetParameterValue in class AbstractMathematicalFunctionWrapperindex - the index of the parameter to be retrievedpublic void setParameterValue(int index,
double value)
AbstractMathematicalFunctionsetParameterValue in class AbstractMathematicalFunctionWrapperindex - the parameter indexvalue - the parameter valuepublic void optimizerDidThis(java.lang.String actionString)
optimizerDidThis in interface OptimizerListener