Class CalibratableComponent

java.lang.Object
org.drip.product.definition.Component
org.drip.product.definition.CalibratableComponent
All Implemented Interfaces:
ComponentMarketParamRef
Direct Known Subclasses:
CreditComponent, DualStreamComponent, FXForwardComponent, OptionComponent, RatesBasket, SingleStreamComponent

public abstract class CalibratableComponent
extends Component
CalibratableComponent abstract class provides implementation of Component's calibration interface. It exposes stubs for getting/setting the component’s calibration code, generate calibrated measure values from the market inputs, and compute micro-Jacobians (QuoteDF and PVDF micro-Jacks).



Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • CalibratableComponent

      public CalibratableComponent()
  • Method Details

    • primaryCode

      public abstract java.lang.String primaryCode()
      Return the primary code
      Returns:
      Primary Code
    • setPrimaryCode

      public abstract void setPrimaryCode​(java.lang.String strCode)
      Set the component's primary code
      Parameters:
      strCode - Primary Code
    • secondaryCode

      public java.lang.String[] secondaryCode()
      Get the component's secondary codes
      Returns:
      Array of strings containing the secondary codes
    • calibQuoteSet

      public abstract ProductQuoteSet calibQuoteSet​(LatentStateSpecification[] aLSS)
      Generate the Product Specific Calibration Quote Set
      Parameters:
      aLSS - Array of Latent State Specification
      Returns:
      The Product Specific Calibration Quote Set
    • calibMeasures

      public abstract CaseInsensitiveTreeMap<java.lang.Double> calibMeasures​(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
      Generate a Map of the Calibration Measures
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Market Parameters
      vcp - Valuation Customization Parameters
      Returns:
      Map of the Calibration Measures
    • fundingPRWC

      Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Funding Curve Discount Factor Latent State from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      pqs - Product Quote Set
      Returns:
      The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding PV)
    • forwardPRWC

      Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Forward Factor Latent State from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      pqs - Product Quote Set
      Returns:
      The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding PV)
    • fundingForwardPRWC

      public abstract PredictorResponseWeightConstraint fundingForwardPRWC​(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, ProductQuoteSet pqs)
      Generate the Calibratable Linearized Predictor/Response Constraint Weights for the merged Funding and Forward Latent States from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      pqs - Product Quote Set
      Returns:
      The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding PV)
    • fxPRWC

      Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged FX Curve FX Forward Latent State from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      pqs - Product Quote Set
      Returns:
      The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding FX Forward)
    • govviePRWC

      Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Govvie Curve FX Forward Latent State from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      pqs - Product Quote Set
      Returns:
      The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding Govvie Forward)
    • volatilityPRWC

      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.
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      pqs - Product Quote Set
      Returns:
      The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding PV)
    • jackDDirtyPVDManifestMeasure

      public abstract WengertJacobian jackDDirtyPVDManifestMeasure​(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
      Compute the Jacobian of the Dirty PV to the Calibrated Input Manifest Measures
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      Returns:
      The micro-Jacobian
    • manifestMeasureDFMicroJack

      public abstract WengertJacobian manifestMeasureDFMicroJack​(java.lang.String strMainfestMeasure, ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
      Compute the micro-Jacobian of the given measure to the DF
      Parameters:
      strMainfestMeasure - Manifest Measure Name
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      Returns:
      The micro-Jacobian
    • calibPRWC

      Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Component from the Market Inputs. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
      Parameters:
      valParams - Valuation Parameters
      pricerParams - Pricer Parameters
      csqs - Component Market Parameters
      vcp - Valuation Customization Parameters
      pqs - The Product Calibration Quote Set
      Returns:
      The Calibratable Linearized Predictor/Response Constraints (Date/Cash Flow pairs and the corresponding PV)