public final class ValueDerivatives extends Object implements org.joda.beans.ImmutableBean, Serializable
This defines a standard way to return a value and its derivatives to certain inputs. It is in particular used as a return object for Algorithmic Differentiation versions of some functions.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getDerivative(int index)
Gets the derivative of the variable with respect to an input.
|
DoubleArray |
getDerivatives()
Gets the derivatives of the variable with respect to some inputs.
|
double |
getValue()
Gets the value of the variable.
|
int |
hashCode() |
static org.joda.beans.TypedMetaBean<ValueDerivatives> |
meta()
The meta-bean for
ValueDerivatives. |
org.joda.beans.TypedMetaBean<ValueDerivatives> |
metaBean() |
static ValueDerivatives |
of(double value,
DoubleArray derivatives)
Obtains an instance from a value and array of derivatives.
|
String |
toString() |
public static ValueDerivatives of(double value, DoubleArray derivatives)
value - the valuederivatives - the derivatives of the valuepublic double getDerivative(int index)
index - the zero-based derivative to obtainIndexOutOfBoundsException - if the index is invalidpublic static org.joda.beans.TypedMetaBean<ValueDerivatives> meta()
ValueDerivatives.public org.joda.beans.TypedMetaBean<ValueDerivatives> metaBean()
metaBean in interface org.joda.beans.Beanpublic double getValue()
public DoubleArray getDerivatives()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.