public class UncoupledParameterTransforms extends Object implements NonLinearParameterTransforms
| Constructor and Description |
|---|
UncoupledParameterTransforms(DoubleArray startValues,
ParameterLimitsTransform[] transforms,
BitSet fixed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getNumberOfFittingParameters() |
int |
getNumberOfModelParameters() |
int |
hashCode() |
DoubleMatrix |
inverseJacobian(DoubleArray fittingParameters)
Calculates the Jacobian of the transform from fitting parameters to function parameters -
the i,j element will be the partial derivative of i^th function parameter with respect.
|
DoubleArray |
inverseTransform(DoubleArray fittingParameters)
Transforms from a set of unconstrained fitting parameters to a (possibly larger) set of function parameters
(some of which may have constrained range and/or be fixed).
|
DoubleMatrix |
jacobian(DoubleArray functionParameters)
Calculates the Jacobian of the transform from function parameters to fitting parameters -
the i,j element will be the partial derivative of i^th fitting parameter with respect.
|
DoubleArray |
transform(DoubleArray functionParameters)
Transforms from a set of function parameters (some of which may have constrained range and/or be fixed)
to a (possibly smaller) set of unconstrained fitting parameters.
|
public UncoupledParameterTransforms(DoubleArray startValues, ParameterLimitsTransform[] transforms, BitSet fixed)
startValues - fixed parameter values (if no parameters are fixed this is completely ignored)transforms - Array of ParameterLimitsTransform
(which can be the NullTransform which does NOT transform the parameter) which transform
a constrained function parameter (e.g. must be between -1 and 1) to a unconstrained fit parameter.fixed - BitSet with an element set to true if that parameter is fixedpublic int getNumberOfModelParameters()
getNumberOfModelParameters in interface NonLinearParameterTransformspublic int getNumberOfFittingParameters()
getNumberOfFittingParameters in interface NonLinearParameterTransformspublic DoubleArray transform(DoubleArray functionParameters)
transform in interface NonLinearParameterTransformsfunctionParameters - The function parameterspublic DoubleArray inverseTransform(DoubleArray fittingParameters)
inverseTransform in interface NonLinearParameterTransformsfittingParameters - The fitting parameterspublic DoubleMatrix jacobian(DoubleArray functionParameters)
jacobian in interface NonLinearParameterTransformsfunctionParameters - The function parameterspublic DoubleMatrix inverseJacobian(DoubleArray fittingParameters)
inverseJacobian in interface NonLinearParameterTransformsfittingParameters - The fitting parametersCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.