Package org.drip.product.fra
Class FRAStandardCapFloorlet
java.lang.Object
org.drip.product.definition.Component
org.drip.product.definition.CalibratableComponent
org.drip.product.option.OptionComponent
org.drip.product.fra.FRAStandardCapFloorlet
- All Implemented Interfaces:
ComponentMarketParamRef
public class FRAStandardCapFloorlet extends OptionComponent
FRAStandardCapFloorlet implements the Standard FRA Caplet and Floorlet.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = Standard/Market FRAs - Caps/Floors
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description FRAStandardCapFloorlet(java.lang.String strName, FRAStandardComponent fra, java.lang.String strManifestMeasure, boolean bIsCaplet, double dblStrike, double dblNotional, LastTradingDateSetting ltds, FokkerPlanckGenerator fpg, CashSettleParams csp)
FRAStandardCapFloorlet constructor -
Method Summary
Modifier and Type Method Description FRAStandardComponent
fra()
Retrieve the Underlying FRA Instancedouble
implyVolatility(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, java.lang.String strCalibMeasure, double dblCalibValue)
Imply the Flat Caplet/Floorlet Volatility from the Market Manifest Measureboolean
isCaplet()
Indicate whether this a Caplet/Floorletjava.util.Set<java.lang.String>
measureNames()
Retrieve the ordered set of the measure names whose values will be calculateddouble
price(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, double dblVolatility)
Compute the Caplet/Floorlet Price from the InputsFokkerPlanckGenerator
pricer()
Retrieve the Underlying Pricer Instancedouble
pv(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp)
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 csqs, ValuationCustomizationParams vcp, double dblIntegratedSurfaceVariance)
Generate the Standard FRA Caplet/Floorlet Measures from the Integrated Surface VariancePredictorResponseWeightConstraint
volatilityPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, 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, calibQuoteSet, cashSettleParams, couponCurrency, 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, payCurrency, primaryCode, principalCurrency, 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
-
FRAStandardCapFloorlet
public FRAStandardCapFloorlet(java.lang.String strName, FRAStandardComponent fra, java.lang.String strManifestMeasure, boolean bIsCaplet, double dblStrike, double dblNotional, LastTradingDateSetting ltds, FokkerPlanckGenerator fpg, CashSettleParams csp) throws java.lang.ExceptionFRAStandardCapFloorlet constructor- Parameters:
strName
- Namefra
- The Underlying FRA Standard ComponentstrManifestMeasure
- Measure of the Underlying ComponentbIsCaplet
- Is the FRA Option a Caplet? TRUE - YESdblStrike
- Strike of the Underlying Component's MeasuredblNotional
- Option Notionalltds
- Last Trading Date Settingfpg
- The Fokker Planck Pricer Instancecsp
- Cash Settle Parameters- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
fra
Retrieve the Underlying FRA Instance- Returns:
- The FRA Instance
-
isCaplet
public boolean isCaplet()Indicate whether this a Caplet/Floorlet- Returns:
- TRUE - This is a Caplet
-
pricer
Retrieve the Underlying Pricer Instance- Returns:
- The Pricer Instance
-
valueFromSurfaceVariance
public CaseInsensitiveTreeMap<java.lang.Double> valueFromSurfaceVariance(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, double dblIntegratedSurfaceVariance)Generate the Standard FRA Caplet/Floorlet Measures from the Integrated Surface Variance- Parameters:
valParams
- The Valuation ParameterspricerParams
- The Pricer Parameterscsqs
- The Market Parametersvcp
- The Valuation Customization ParametersdblIntegratedSurfaceVariance
- The Integrated Surface Variance- Returns:
- The Standard FRA Caplet/Floorlet Measures
-
price
public double price(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, double dblVolatility) throws java.lang.ExceptionCompute the Caplet/Floorlet Price from the Inputs- Parameters:
valParams
- The Valuation ParameterspricerParams
- Pricer Parameterscsqs
- The Market Parametersvcp
- The Valuation Customization ParametersdblVolatility
- The FRA Volatility- Returns:
- The Caplet/Floorlet Price
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
implyVolatility
public double implyVolatility(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, java.lang.String strCalibMeasure, double dblCalibValue) throws java.lang.ExceptionImply the Flat Caplet/Floorlet Volatility from the Market Manifest Measure- Parameters:
valParams
- The Valuation ParameterspricerParams
- Pricer Parameterscsqs
- The Market Parametersvcp
- The Valuation Customization ParametersstrCalibMeasure
- The Calibration MeasuredblCalibValue
- The Calibration Value- Returns:
- The Implied Caplet/Floorlet Volatility
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
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 -
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
-
pv
public double pv(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp) throws java.lang.ExceptionDescription copied from class:Component
Compute the PV for the specified Market Parameters -
volatilityPRWC
public PredictorResponseWeightConstraint volatilityPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, 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 Parametersvcp
- Valuation Customization Parameterspqs
- Product Quote Set- Returns:
- The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding PV)
-