public final class EuropeanVanillaOptionFunction extends Object implements OptionFunction, org.joda.beans.ImmutableBean, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
EuropeanVanillaOptionFunction.Meta
The meta-bean for
EuropeanVanillaOptionFunction. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getNumberOfSteps()
Gets the number of time steps.
|
DoubleArray |
getPayoffAtExpiryTrinomial(DoubleArray stateValue)
Computes payoff at expiry for trinomial tree.
|
double |
getSign()
Gets the sign.
|
double |
getStrike()
Gets the strike value.
|
double |
getTimeToExpiry()
Gets the time to expiry.
|
int |
hashCode() |
static EuropeanVanillaOptionFunction.Meta |
meta()
The meta-bean for
EuropeanVanillaOptionFunction. |
EuropeanVanillaOptionFunction.Meta |
metaBean() |
static EuropeanVanillaOptionFunction |
of(double strike,
double timeToExpiry,
PutCall putCall,
int numberOfSteps)
Obtains an instance.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNextOptionValues, getNextOptionValues, getPayoffAtExpiryTrinomialpublic static EuropeanVanillaOptionFunction of(double strike, double timeToExpiry, PutCall putCall, int numberOfSteps)
strike - the striketimeToExpiry - the time to expiryputCall - put or callnumberOfSteps - the number of time stepspublic DoubleArray getPayoffAtExpiryTrinomial(DoubleArray stateValue)
OptionFunctionThe payoff values for individual nodes at expiry are computed from state values at the final layer. For example, the state values represent underlying prices of an option at respective nodes.
getPayoffAtExpiryTrinomial in interface OptionFunctionstateValue - the state valuespublic static EuropeanVanillaOptionFunction.Meta meta()
EuropeanVanillaOptionFunction.public EuropeanVanillaOptionFunction.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic double getStrike()
public double getTimeToExpiry()
getTimeToExpiry in interface OptionFunctionpublic double getSign()
The sign is +1 for call and -1 for put.
public int getNumberOfSteps()
getNumberOfSteps in interface OptionFunctionCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.