Package org.drip.product.option
Class CDSEuropeanOption
java.lang.Object
org.drip.product.definition.Component
org.drip.product.definition.CalibratableComponent
org.drip.product.option.OptionComponent
org.drip.product.option.CDSEuropeanOption
- All Implemented Interfaces:
ComponentMarketParamRef
public class CDSEuropeanOption extends OptionComponent
CDSEuropeanOption implements the Payer/Receiver European Option on a CDS.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = Options on Fixed Income Components
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description CDSEuropeanOption(java.lang.String strName, CreditDefaultSwap cds, java.lang.String strManifestMeasure, boolean bIsReceiver, double dblStrike, LastTradingDateSetting ltds, FokkerPlanckGenerator fpg, CashSettleParams csp)
CDSEuropeanOption constructor -
Method Summary
Modifier and Type Method Description ProductQuoteSet
calibQuoteSet(LatentStateSpecification[] aLSS)
Generate the Product Specific Calibration Quote SetCaseInsensitiveTreeMap<java.lang.String>
couponCurrency()
Get the Map of Coupon Currenciesjava.util.Set<java.lang.String>
measureNames()
Retrieve the ordered set of the measure names whose values will be calculatedjava.lang.String
payCurrency()
Get the Pay Currencyjava.lang.String
principalCurrency()
Get the Principal Currencydouble
pv(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams quotingParams)
Compute the PV for the specified Market ParametersCaseInsensitiveTreeMap<java.lang.Double>
value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
Generate a full list of the Product measures for the full input set of market parametersCaseInsensitiveTreeMap<java.lang.Double>
valueFromSurfaceVariance(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblIntegratedSurfaceVariance)
Generate the Standard CDS European Option Measures from the Integrated Surface VariancePredictorResponseWeightConstraint
volatilityPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams quotingParams, ProductQuoteSet pqs)
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Volatility Latent State from the Component's Cash Flows.Methods inherited from class org.drip.product.option.OptionComponent
calibMeasures, cashSettleParams, couponMetrics, couponPeriods, creditLabel, effectiveDate, exerciseDate, firstCouponDate, forwardLabel, forwardPRWC, freq, fundingForwardPRWC, fundingLabel, fundingPRWC, fxLabel, fxPRWC, govvieLabel, govviePRWC, initialNotional, jackDDirtyPVDManifestMeasure, lastTradingDateSetting, manifestMeasure, manifestMeasureDFMicroJack, maturityDate, name, notional, notional, notional, otcFixFloatLabel, primaryCode, setPrimaryCode, strike, underlying, volatilityLabel
Methods inherited from class org.drip.product.definition.CalibratableComponent
calibPRWC, secondaryCode
Methods inherited from class org.drip.product.definition.Component
customScenarioMeasures, maturityPayDate, measures, measureValue, tenor
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CDSEuropeanOption
public CDSEuropeanOption(java.lang.String strName, CreditDefaultSwap cds, java.lang.String strManifestMeasure, boolean bIsReceiver, double dblStrike, LastTradingDateSetting ltds, FokkerPlanckGenerator fpg, CashSettleParams csp) throws java.lang.ExceptionCDSEuropeanOption constructor- Parameters:
strName
- Namecds
- The Underlying CDS ComponentstrManifestMeasure
- Measure of the Underlying ComponentbIsReceiver
- Is the Option a Receiver/Payer? TRUE - ReceiverdblStrike
- Strike of the Underlying Component's Measureltds
- Last Trading Date Settingfpg
- The Fokker Planck Pricer Instancecsp
- Cash Settle Parameters- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
valueFromSurfaceVariance
public CaseInsensitiveTreeMap<java.lang.Double> valueFromSurfaceVariance(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblIntegratedSurfaceVariance)Generate the Standard CDS European Option Measures from the Integrated Surface Variance- Parameters:
valParams
- The Valuation ParameterspricerParams
- The Pricer Parameterscsqc
- The Market Parametersvcp
- The Valuation Customization ParametersdblIntegratedSurfaceVariance
- The Integrated Surface Variance- Returns:
- The Standard CDS European Option Measures
-
measureNames
public java.util.Set<java.lang.String> measureNames()Description copied from class:Component
Retrieve the ordered set of the measure names whose values will be calculated- Specified by:
measureNames
in classComponent
- Returns:
- Set of Measure Names
-
couponCurrency
Description copied from interface:ComponentMarketParamRef
Get the Map of Coupon Currencies- Specified by:
couponCurrency
in interfaceComponentMarketParamRef
- Overrides:
couponCurrency
in classOptionComponent
- Returns:
- The Map of Coupon Currencies
-
payCurrency
public java.lang.String payCurrency()Description copied from interface:ComponentMarketParamRef
Get the Pay Currency- Specified by:
payCurrency
in interfaceComponentMarketParamRef
- Overrides:
payCurrency
in classOptionComponent
- Returns:
- The Pay Currency
-
principalCurrency
public java.lang.String principalCurrency()Description copied from interface:ComponentMarketParamRef
Get the Principal Currency- Specified by:
principalCurrency
in interfaceComponentMarketParamRef
- Overrides:
principalCurrency
in classOptionComponent
- Returns:
- The Principal Currency
-
value
public CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)Description copied from class:Component
Generate a full list of the Product measures for the full input set of market parameters -
pv
public double pv(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams quotingParams) throws java.lang.ExceptionDescription copied from class:Component
Compute the PV for the specified Market Parameters -
calibQuoteSet
Description copied from class:CalibratableComponent
Generate the Product Specific Calibration Quote Set- Overrides:
calibQuoteSet
in classOptionComponent
- Parameters:
aLSS
- Array of Latent State Specification- Returns:
- The Product Specific Calibration Quote Set
-
volatilityPRWC
public PredictorResponseWeightConstraint volatilityPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams quotingParams, ProductQuoteSet pqs)Description copied from class:CalibratableComponent
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Volatility Latent State from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.- Specified by:
volatilityPRWC
in classCalibratableComponent
- Parameters:
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market ParametersquotingParams
- Valuation Customization Parameterspqs
- Product Quote Set- Returns:
- The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding PV)
-