public class HestonStochasticVolatilityAlgorithm extends FokkerPlanckGenerator
Modifier and Type | Field and Description |
---|---|
static int |
PAYOFF_TRANSFORM_SCHEME_AMST_2007
Payoff Transformation Type - The Albrecher, Mayer, Schoutens, and Tistaert Scheme
|
static int |
PAYOFF_TRANSFORM_SCHEME_HESTON_1993
Payoff Transformation Type - The Original Heston 1993 Scheme
|
Constructor and Description |
---|
HestonStochasticVolatilityAlgorithm(HestonOptionPricerParams fphp)
HestonStochasticVolatilityAlgorithm constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
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
|
java.util.Map<java.lang.Double,java.lang.Double> |
recordPhase(double dblStrike,
double dbTimeToExpiry,
double dblRiskFreeRate,
double dblSpot,
double dblInitialVolatility,
boolean bLeft)
Record the Details of a Single Phase Adjustment Run
|
greeks, greeks, impliedBlackScholesVolatility, impliedVolatilityFromPrice, impliedVolatilityFromPrice, payoff, payoff
public static final int PAYOFF_TRANSFORM_SCHEME_HESTON_1993
public static final int PAYOFF_TRANSFORM_SCHEME_AMST_2007
public HestonStochasticVolatilityAlgorithm(HestonOptionPricerParams fphp) throws java.lang.Exception
fphp
- The Heston Algorithm Parametersjava.lang.Exception
- Thrown if the Inputs are Invalidpublic java.util.Map<java.lang.Double,java.lang.Double> recordPhase(double dblStrike, double dbTimeToExpiry, double dblRiskFreeRate, double dblSpot, double dblInitialVolatility, boolean bLeft)
dblStrike
- StrikedbTimeToExpiry
- TTEdblRiskFreeRate
- Risk Free RatedblSpot
- SpotdblInitialVolatility
- Initial VolatilitybLeft
- TRUE - Phase Correction applied to Leftpublic double payoff(double dblStrike, double dblTimeToExpiry, double dblRiskFreeRate, double dblUnderlier, boolean bIsPut, boolean bIsForward, double dblInitialVolatility, boolean bAsPrice) throws java.lang.Exception
FokkerPlanckGenerator
payoff
in class FokkerPlanckGenerator
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 Greeks greeks(double dblStrike, double dblTimeToExpiry, double dblRiskFreeRate, double dblUnderlier, boolean bIsPut, boolean bIsForward, double dblInitialVolatility)
FokkerPlanckGenerator
greeks
in class FokkerPlanckGenerator
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 Value