Package org.drip.analytics.support
Class OptionHelper
java.lang.Object
org.drip.analytics.support.OptionHelper
public class OptionHelper
extends java.lang.Object
OptionHelper contains the collection of the option valuation related utility functions used by the
modules.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Date, Cash Flow, and Cash Flow Period Measure Generation Utilities
- Package = Assorted Support and Helper Utilities
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description OptionHelper()
-
Method Summary
Modifier and Type Method Description static double
IntegratedCrossVolQuanto(CurveSurfaceQuoteContainer csqs, java.lang.String strCustomMetricLabel1, java.lang.String strCustomMetricLabel2, int iStartDate, int iEndDate)
Compute the Integrated Cross Volatility Quanto Product given the corresponding volatility and the correlation Curves and the date spansstatic double
IntegratedCrossVolQuanto(VolatilityCurve vc1, VolatilityCurve vc2, R1ToR1 r1r1Correlation, int iStartDate, int iEndDate)
Compute the Integrated Cross Volatility Quanto Product given the corresponding volatility and the correlation curves, and the date spansstatic double
IntegratedFRACrossVolConvexityAdjuster(CurveSurfaceQuoteContainer csqs, ForwardLabel forwardLabel, FundingLabel fundingLabel, double dblForwardShiftedLogNormalScaler, double dblFundingShiftedLogNormalScaler, int iStartDate, int iEndDate)
Compute the Integrated FRA Cross Volatility Convexity Adjuster given the corresponding volatility and the correlation Curves and the date spansstatic double
IntegratedFRACrossVolConvexityExponent(VolatilityCurve vcForward, VolatilityCurve vcFunding, R1ToR1 r1r1ForwardFundingCorrelation, double dblForwardShiftedLogNormalScaler, double dblFundingShiftedLogNormalScaler, int iStartDate, int iEndDate)
Compute the Integrated FRA Cross Volatility Convexity Exponent given the corresponding volatility and the correlation Curves, and the date spansstatic double
IntegratedSurfaceVariance(CurveSurfaceQuoteContainer csqs, java.lang.String strCustomMetricLabel, int iStartDate, int iEndDate)
Compute the Integrated Surface Variance given the corresponding volatility and the date spansstatic double
IntegratedSurfaceVariance(VolatilityCurve vc, int iStartDate, int iEndDate)
Compute the Integrated Surface Variance given the corresponding volatility and the date spansstatic double
MultiplicativeCrossVolQuanto(CurveSurfaceQuoteContainer csqs, java.lang.String strCustomMetricLabel1, java.lang.String strCustomMetricLabel2, int iStartDate, int iEndDate)
Compute the Multiplicative Cross Volatility Quanto Product given the corresponding volatility and the correlation Curves, and the date spansMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OptionHelper
public OptionHelper()
-
-
Method Details
-
IntegratedSurfaceVariance
public static final double IntegratedSurfaceVariance(CurveSurfaceQuoteContainer csqs, java.lang.String strCustomMetricLabel, int iStartDate, int iEndDate) throws java.lang.ExceptionCompute the Integrated Surface Variance given the corresponding volatility and the date spans- Parameters:
csqs
- Market ParametersstrCustomMetricLabel
- Custom Metric LabeliStartDate
- Evolution Start DateiEndDate
- Evolution End Date- Returns:
- The Integrated Volatility Surface
- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
IntegratedSurfaceVariance
public static final double IntegratedSurfaceVariance(VolatilityCurve vc, int iStartDate, int iEndDate) throws java.lang.ExceptionCompute the Integrated Surface Variance given the corresponding volatility and the date spans- Parameters:
vc
- The Volatility CurveiStartDate
- Evolution Start DateiEndDate
- Evolution End Date- Returns:
- The Integrated Volatility Surface
- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
IntegratedCrossVolQuanto
public static final double IntegratedCrossVolQuanto(VolatilityCurve vc1, VolatilityCurve vc2, R1ToR1 r1r1Correlation, int iStartDate, int iEndDate) throws java.lang.ExceptionCompute the Integrated Cross Volatility Quanto Product given the corresponding volatility and the correlation curves, and the date spans- Parameters:
vc1
- Volatility Curve #1vc2
- Volatility Curve #2r1r1Correlation
- Correlation CurveiStartDate
- Evolution Start DateiEndDate
- Evolution End Date- Returns:
- The Integrated Cross Volatility Quanto Product
- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
IntegratedFRACrossVolConvexityExponent
public static final double IntegratedFRACrossVolConvexityExponent(VolatilityCurve vcForward, VolatilityCurve vcFunding, R1ToR1 r1r1ForwardFundingCorrelation, double dblForwardShiftedLogNormalScaler, double dblFundingShiftedLogNormalScaler, int iStartDate, int iEndDate) throws java.lang.ExceptionCompute the Integrated FRA Cross Volatility Convexity Exponent given the corresponding volatility and the correlation Curves, and the date spans- Parameters:
vcForward
- Volatility Term Structure of the Funding RatevcFunding
- Volatility Term Structure of the Forward Rater1r1ForwardFundingCorrelation
- Correlation Term Structure between the Forward and the Funding StatesdblForwardShiftedLogNormalScaler
- Scaling for the Forward Log Normal VolatilitydblFundingShiftedLogNormalScaler
- Scaling for the Funding Log Normal VolatilityiStartDate
- Evolution Start DateiEndDate
- Evolution End Date- Returns:
- The Integrated FRA Cross Volatility Convexity Exponent
- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
IntegratedCrossVolQuanto
public static final double IntegratedCrossVolQuanto(CurveSurfaceQuoteContainer csqs, java.lang.String strCustomMetricLabel1, java.lang.String strCustomMetricLabel2, int iStartDate, int iEndDate) throws java.lang.ExceptionCompute the Integrated Cross Volatility Quanto Product given the corresponding volatility and the correlation Curves and the date spans- Parameters:
csqs
- Market ParametersstrCustomMetricLabel1
- Custom Metric Label #1strCustomMetricLabel2
- Custom Metric Label #2iStartDate
- Evolution Start DateiEndDate
- Evolution End Date- Returns:
- The Integrated Cross Volatility Quanto Product
- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
MultiplicativeCrossVolQuanto
public static final double MultiplicativeCrossVolQuanto(CurveSurfaceQuoteContainer csqs, java.lang.String strCustomMetricLabel1, java.lang.String strCustomMetricLabel2, int iStartDate, int iEndDate) throws java.lang.ExceptionCompute the Multiplicative Cross Volatility Quanto Product given the corresponding volatility and the correlation Curves, and the date spans- Parameters:
csqs
- Market ParametersstrCustomMetricLabel1
- Custom Metric Label #1strCustomMetricLabel2
- Custom Metric Label #2iStartDate
- Evolution Start DateiEndDate
- Evolution End Date- Returns:
- The Multiplicative Cross Volatility Quanto Product
- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
IntegratedFRACrossVolConvexityAdjuster
public static final double IntegratedFRACrossVolConvexityAdjuster(CurveSurfaceQuoteContainer csqs, ForwardLabel forwardLabel, FundingLabel fundingLabel, double dblForwardShiftedLogNormalScaler, double dblFundingShiftedLogNormalScaler, int iStartDate, int iEndDate) throws java.lang.ExceptionCompute the Integrated FRA Cross Volatility Convexity Adjuster given the corresponding volatility and the correlation Curves and the date spans- Parameters:
csqs
- Market ParametersforwardLabel
- Forward Latent State LabelfundingLabel
- Funding Latent State LabeldblForwardShiftedLogNormalScaler
- Scaling for the Forward Log Normal VolatilitydblFundingShiftedLogNormalScaler
- Scaling for the Funding Log Normal VolatilityiStartDate
- Evolution Start DateiEndDate
- Evolution End Date- Returns:
- The Integrated FRA Cross Volatility Convexity Adjuster
- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-