public abstract class FokkerPlanckGenerator extends java.lang.Object implements GenericPricer
| Constructor and Description |
|---|
FokkerPlanckGenerator() |
| Modifier and Type | Method and Description |
|---|---|
abstract Greeks |
greeks(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblInitialVolatility)
Carry out a Sensitivity Run and generate the Pricing related measure set
|
Greeks |
greeks(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblIntegratedSurfaceVariance)
Carry out a Sensitivity Run and generate the Pricing related measure set
|
Greeks |
greeks(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
R1ToR1 funcVolatilityR1ToR1)
Carry out a Sensitivity Run and generate the Pricing related measure set
|
double |
impliedBlackScholesVolatility(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblPrice)
Imply the Effective Black-Scholes Volatility From the Option Price
|
double |
impliedVolatilityFromPrice(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblPrice)
Imply the Effective Volatility From the Option Price
|
double |
impliedVolatilityFromPrice(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblPrice)
Imply the Effective Volatility From the Option Price
|
abstract double |
payoff(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblInitialVolatility,
boolean bAsPrice)
Compute the Expected Payoff of the Option from the Inputs
|
double |
payoff(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblInitialVolatility,
boolean bAsPrice)
Compute the Expected Payoff of the Option from the Inputs
|
double |
payoff(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
R1ToR1 funcVolatilityR1ToR1,
boolean bAsPrice)
Compute the Expected Payoff of the Option from the Inputs
|
public abstract double payoff(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblInitialVolatility,
boolean bAsPrice)
throws java.lang.Exception
dblStrike - Option StrikedblTimeToExpiry - Option Time To ExpirydblRiskFreeRate - Option Risk Free RatedblUnderlier - Option Underlier ValuebIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotdblInitialVolatility - Option Initial Volatility ValuebAsPrice - TRUE - Return the Discounted Payoffjava.lang.Exception - Thrown if the Expected Payoff cannot be calculatedpublic abstract Greeks greeks(double dblStrike, double dblTimeToExpiry, double dblRiskFreeRate, double dblUnderlier, boolean bIsPut, boolean bIsForward, double dblInitialVolatility)
dblStrike - Option StrikedblTimeToExpiry - Option Time To ExpirydblRiskFreeRate - Option Risk Free RatedblUnderlier - Option Underlier ValuebIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotdblInitialVolatility - Option Initial Volatility Valuepublic double payoff(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblInitialVolatility,
boolean bAsPrice)
throws java.lang.Exception
iSpotDate - Spot DateiExpiryDate - Expiry DatedblStrike - Option StrikedcFunding - The Funding CurvedblUnderlier - Option Underlier ValuebIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotdblInitialVolatility - Option Initial Volatility ValuebAsPrice - TRUE - Return the Discounted Payoffjava.lang.Exception - Thrown if the Expected Payoff cannot be calculatedpublic double payoff(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
R1ToR1 funcVolatilityR1ToR1,
boolean bAsPrice)
throws java.lang.Exception
iSpotDate - Spot DateiExpiryDate - Expiry DatedblStrike - Option StrikedcFunding - The Funding CurvedblUnderlier - Option Underlier ValuebIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotfuncVolatilityR1ToR1 - The R^1 To R^1 Volatility Term StructurebAsPrice - TRUE - Return the Discounted Payoffjava.lang.Exception - Thrown if the Expected Payoff cannot be calculatedpublic Greeks greeks(int iSpotDate, int iExpiryDate, double dblStrike, MergedDiscountForwardCurve dcFunding, double dblUnderlier, boolean bIsPut, boolean bIsForward, double dblIntegratedSurfaceVariance)
iSpotDate - Spot DateiExpiryDate - Expiry DatedblStrike - Option StrikedcFunding - The Funding CurvedblUnderlier - Option Underlier ValuebIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotdblIntegratedSurfaceVariance - The Integrated Surface Variancepublic Greeks greeks(int iSpotDate, int iExpiryDate, double dblStrike, MergedDiscountForwardCurve dcFunding, double dblUnderlier, boolean bIsPut, boolean bIsForward, R1ToR1 funcVolatilityR1ToR1)
iSpotDate - Spot DateiExpiryDate - Expiry DatedblStrike - Option StrikedcFunding - The Funding CurvedblUnderlier - Option Underlier ValuebIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotfuncVolatilityR1ToR1 - The R^1 To R^1 Volatility Term Structurepublic double impliedVolatilityFromPrice(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblPrice)
throws java.lang.Exception
dblStrike - StrikedblTimeToExpiry - Time To ExpirydblRiskFreeRate - Risk Free RatedblUnderlier - The UnderlierbIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotdblPrice - The Pricejava.lang.Exception - Thrown if the Effective Volatility cannot be impliedpublic double impliedVolatilityFromPrice(int iSpotDate,
int iExpiryDate,
double dblStrike,
MergedDiscountForwardCurve dcFunding,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblPrice)
throws java.lang.Exception
iSpotDate - Spot DateiExpiryDate - Expiry DatedblStrike - Option StrikedcFunding - The Funding CurvedblUnderlier - Option Underlier ValuebIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotdblPrice - The Pricejava.lang.Exception - Thrown if the Effective Volatility cannot be impliedpublic double impliedBlackScholesVolatility(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblPrice)
throws java.lang.Exception
dblStrike - StrikedblTimeToExpiry - Time To ExpirydblRiskFreeRate - Risk Free RatedblUnderlier - The UnderlierbIsPut - TRUE - The Option is a PutbIsForward - TRUE - The Underlier represents the Forward, FALSE - it represents SpotdblPrice - The Pricejava.lang.Exception - Thrown if the Black Scholes Effective Volatility cannot be implied