Class ParamOptimizer.ParameterState
java.lang.Object
_global.tri.oxidationstates.fitting.ParamOptimizer.ParameterState
- All Implemented Interfaces:
matsci.engine.IContinuousFunctionState
- Enclosing class:
- ParamOptimizer
public class ParamOptimizer.ParameterState
extends Object
implements matsci.engine.IContinuousFunctionState
This represents a snapshot of the parameters at one point in the optimization
algorithm
-
Method Summary
Modifier and TypeMethodDescriptionReturns the likelihood calculator containing the current parametersdouble[]getGradient(double[] template) doubleGets the regularization term, which is the regularization parameter times the sum of spreadsdouble[]getUnboundedParameters(double[] template) doublegetValue()intmatsci.engine.IContinuousFunctionStatesetUnboundedParameters(double[] parameters) voidWrite the current parameters to a text file
-
Method Details
-
numParameters
public int numParameters()- Specified by:
numParametersin interfacematsci.engine.IContinuousFunctionState
-
getUnboundedParameters
public double[] getUnboundedParameters(double[] template) - Specified by:
getUnboundedParametersin interfacematsci.engine.IContinuousFunctionState
-
getGradient
public double[] getGradient(double[] template) - Specified by:
getGradientin interfacematsci.engine.IContinuousFunctionState
-
setUnboundedParameters
public matsci.engine.IContinuousFunctionState setUnboundedParameters(double[] parameters) - Specified by:
setUnboundedParametersin interfacematsci.engine.IContinuousFunctionState
-
writeFile
Write the current parameters to a text file- Parameters:
fileName- The name of the file to write
-
getValue
public double getValue()- Specified by:
getValuein interfacematsci.engine.IContinuousFunctionState
-
getRegularizer
public double getRegularizer()Gets the regularization term, which is the regularization parameter times the sum of spreads- Returns:
- the regularization term, which is the regularization parameter times the sum of spreads
-
getCalculator
Returns the likelihood calculator containing the current parameters- Returns:
- the likelihood calculator containing the current parameters
-