public class SingleRangeLimitTransform extends Object implements ParameterLimitsTransform
ParameterLimitsTransform.LimitType| Constructor and Description |
|---|
SingleRangeLimitTransform(double a,
ParameterLimitsTransform.LimitType limitType)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
double |
inverseTransform(double y)
A function to transform an unconstrained fitting parameter (y*) to a constrained model parameter (y) - i.e.
|
double |
inverseTransformGradient(double y)
The gradient of the function used to transform from a fitting parameter that can take any value,
to a model parameter that is only allows to take certain values.
|
double |
transform(double x)
A function to transform a constrained model parameter (y) to an unconstrained fitting parameter (y*) - i.e.
|
double |
transformGradient(double x)
The gradient of the function used to transform from a model parameter that is only allows
to take certain values, to a fitting parameter that can take any value.
|
public SingleRangeLimitTransform(double a,
ParameterLimitsTransform.LimitType limitType)
a - The limit levellimitType - Type of the limit for the parameterpublic double inverseTransform(double y)
inverseTransform in interface ParameterLimitsTransformy - Fitting parameterpublic double transform(double x)
transform in interface ParameterLimitsTransformx - Model parameterIllegalArgumentException - If the value of $x$ is not consistent with the limit
(e.g. the limit is $x > a$ and $x$ is less than $a$public double inverseTransformGradient(double y)
inverseTransformGradient in interface ParameterLimitsTransformy - fitting parameterpublic double transformGradient(double x)
transformGradient in interface ParameterLimitsTransformx - Model parameterIllegalArgumentException - If the value of $x$ is not consistent with the limit
(e.g. the limit is $x > a$ and $x$ is less than $a$Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.