public class CDSComponent.SpreadCalibrator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CALIBRATION_TYPE_FLAT_CURVE_NODES |
static int |
CALIBRATION_TYPE_FLAT_INSTRUMENT_NODE |
static int |
CALIBRATION_TYPE_NODE_PARALLEL_BUMP |
Constructor and Description |
---|
SpreadCalibrator(CreditDefaultSwap cds,
int iCalibType)
Constructor: Construct the SpreadCalibrator from the CDS parent, and whether the calibration is
off of a single node
|
Modifier and Type | Method and Description |
---|---|
CDSComponent.SpreadCalibOP |
calibrateHazardFromPrice(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
double dblPriceCalib)
Calibrate the hazard rate from calibration price
|
public static final int CALIBRATION_TYPE_FLAT_INSTRUMENT_NODE
public static final int CALIBRATION_TYPE_FLAT_CURVE_NODES
public static final int CALIBRATION_TYPE_NODE_PARALLEL_BUMP
public SpreadCalibrator(CreditDefaultSwap cds, int iCalibType) throws java.lang.Exception
cds
- CDS parentiCalibType
- Calibration type indicating whether the calibration is PARALLEL, FLAT SINGLE
NODE, or FLAT TERMjava.lang.Exception
- Thrown if inputs are invalidpublic CDSComponent.SpreadCalibOP calibrateHazardFromPrice(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, double dblPriceCalib)
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- ComponentMarketParamsvcp
- Valuation Customization ParametersdblPriceCalib
- Market price to be calibrated