public class BlackScholesAlgorithm extends FokkerPlanckGenerator
| Constructor and Description |
|---|
BlackScholesAlgorithm()
Empty BlackScholesAlgorithm Constructor - nothing to be filled in with
|
| Modifier and Type | Method and Description |
|---|---|
Greeks |
greeks(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblVolatility)
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 dblVolatility,
boolean bAsPrice)
Compute the Expected Payoff of the Option from the Inputs
|
greeks, greeks, impliedBlackScholesVolatility, impliedVolatilityFromPrice, impliedVolatilityFromPrice, payoff, payoffpublic BlackScholesAlgorithm()
public double payoff(double dblStrike,
double dblTimeToExpiry,
double dblRiskFreeRate,
double dblUnderlier,
boolean bIsPut,
boolean bIsForward,
double dblVolatility,
boolean bAsPrice)
throws java.lang.Exception
FokkerPlanckGeneratorpayoff in class FokkerPlanckGeneratordblStrike - 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 SpotdblVolatility - 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 dblVolatility)
FokkerPlanckGeneratorgreeks in class FokkerPlanckGeneratordblStrike - 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 SpotdblVolatility - Option Initial Volatility Value