public class EuropeanCallPut
extends java.lang.Object
Constructor and Description |
---|
EuropeanCallPut(JulianDate dtMaturity,
double dblStrike)
EuropeanCallPut constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getMeasureNames()
Retrieve the Set of the Measure Names
|
double |
implyVolatilityFromCallPrice(ValuationParams valParams,
double dblUnderlier,
boolean bIsForward,
MergedDiscountForwardCurve dc,
double dblCallPrice)
Imply the Option Volatility given the Call Price
|
double |
implyVolatilityFromPutPrice(ValuationParams valParams,
double dblUnderlier,
boolean bIsForward,
MergedDiscountForwardCurve dc,
double dblPutPrice)
Imply the Option Volatility given the Put Price
|
JulianDate |
maturity()
Retrieve the Option Maturity
|
double |
strike()
Retrieve the Option Strike
|
CaseInsensitiveTreeMap<java.lang.Double> |
value(ValuationParams valParams,
double dblUnderlier,
boolean bIsForward,
MergedDiscountForwardCurve dc,
R1ToR1 auVolatility,
FokkerPlanckGenerator fpg)
Generate the Measure Set for the Option
|
public EuropeanCallPut(JulianDate dtMaturity, double dblStrike) throws java.lang.Exception
dtMaturity
- Option MaturitydblStrike
- Option Strikejava.lang.Exception
- Thrown if Inputs are Invalidpublic JulianDate maturity()
public double strike()
public CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, double dblUnderlier, boolean bIsForward, MergedDiscountForwardCurve dc, R1ToR1 auVolatility, FokkerPlanckGenerator fpg)
valParams
- The Valuation ParametersdblUnderlier
- The UnderlierbIsForward
- TRUE - The Underlier represents the Forward, FALSE - it represents Spotdc
- Discount CurveauVolatility
- The Option Volatility Functionfpg
- The Fokker Planck-based Option Pricerpublic double implyVolatilityFromCallPrice(ValuationParams valParams, double dblUnderlier, boolean bIsForward, MergedDiscountForwardCurve dc, double dblCallPrice) throws java.lang.Exception
valParams
- The Valuation ParametersdblUnderlier
- The UnderlierbIsForward
- TRUE - The Underlier represents the Forward, FALSE - it represents Spotdc
- Discount CurvedblCallPrice
- The Option Call Pricejava.lang.Exception
- Thrown if Inputs are Invalidpublic double implyVolatilityFromPutPrice(ValuationParams valParams, double dblUnderlier, boolean bIsForward, MergedDiscountForwardCurve dc, double dblPutPrice) throws java.lang.Exception
valParams
- The Valuation ParametersdblUnderlier
- The UnderlierbIsForward
- TRUE - The Underlier represents the Forward, FALSE - it represents Spotdc
- Discount CurvedblPutPrice
- The Option Put Pricejava.lang.Exception
- Thrown if Inputs are Invalidpublic java.util.Set<java.lang.String> getMeasureNames()