Package org.drip.pricer.option
Class BlackNormalAlgorithm
java.lang.Object
org.drip.pricer.option.FokkerPlanckGenerator
org.drip.pricer.option.BlackNormalAlgorithm
- All Implemented Interfaces:
GenericPricer
public class BlackNormalAlgorithm extends FokkerPlanckGenerator
BlackNormalAlgorithm implements the Black Normal European Call and Put Options Pricer.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Custom Pricing Algorithms and the Derivative Fokker Planck Trajectory Generators
- Package = Deterministic/Stochastic Volatility Settings/Greeks
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description BlackNormalAlgorithm()Empty BlackNormalAlgorithm Constructor - nothing to be filled in with -
Method Summary
Modifier and Type Method Description Greeksgreeks(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 setdoublepayoff(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 InputsMethods inherited from class org.drip.pricer.option.FokkerPlanckGenerator
greeks, greeks, impliedBlackScholesVolatility, impliedVolatilityFromPrice, impliedVolatilityFromPrice, payoff, payoffMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BlackNormalAlgorithm
public BlackNormalAlgorithm()Empty BlackNormalAlgorithm Constructor - nothing to be filled in with
-
-
Method Details
-
payoff
public double payoff(double dblStrike, double dblTimeToExpiry, double dblRiskFreeRate, double dblUnderlier, boolean bIsPut, boolean bIsForward, double dblVolatility, boolean bAsPrice) throws java.lang.ExceptionDescription copied from class:FokkerPlanckGeneratorCompute the Expected Payoff of the Option from the Inputs- Specified by:
payoffin classFokkerPlanckGenerator- Parameters:
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 SpotdblVolatility- Option Initial Volatility ValuebAsPrice- TRUE - Return the Discounted Payoff- Returns:
- The Expected Option Payoff
- Throws:
java.lang.Exception- Thrown if the Expected Payoff cannot be calculated
-
greeks
public Greeks greeks(double dblStrike, double dblTimeToExpiry, double dblRiskFreeRate, double dblUnderlier, boolean bIsPut, boolean bIsForward, double dblVolatility)Description copied from class:FokkerPlanckGeneratorCarry out a Sensitivity Run and generate the Pricing related measure set- Specified by:
greeksin classFokkerPlanckGenerator- Parameters:
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 SpotdblVolatility- Option Initial Volatility Value- Returns:
- The Greeks Sensitivities Output
-