@FunctionalInterface public interface ParameterPerturbation
This interface is used by ParameterizedData to allow parameters to be
efficiently perturbed (altered). The method is invoked with the parameter index,
value and metadata, and must return the new value.
| Modifier and Type | Method and Description |
|---|---|
double |
perturbParameter(int index,
double value,
ParameterMetadata metadata)
Applies a perturbation to a single parameter.
|
double perturbParameter(int index,
double value,
ParameterMetadata metadata)
This method receives three arguments describing a single parameter, the index, current value and metadata. The result is the perturbed value.
index - the parameter indexvalue - the parameter valuemetadata - the parameter metadataCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.