public enum FiniteDifferenceType extends Enum<FiniteDifferenceType>
Forward: $\frac{f(x + \epsilon) - f(x)}{\epsilon}$
Central: $\frac{f(x + \epsilon) - f(x - \epsilon)}{2 * \epsilon}$
Backward: $\frac{f(x) - f(x - \epsilon)}{\epsilon}$
| Enum Constant and Description |
|---|
BACKWARD
Backward differencing
|
CENTRAL
Central differencing
|
FORWARD
Forward differencing
|
| Modifier and Type | Method and Description |
|---|---|
static FiniteDifferenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FiniteDifferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FiniteDifferenceType FORWARD
public static final FiniteDifferenceType CENTRAL
public static final FiniteDifferenceType BACKWARD
public static FiniteDifferenceType[] values()
for (FiniteDifferenceType c : FiniteDifferenceType.values()) System.out.println(c);
public static FiniteDifferenceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.