Class SimpleCreditCurveCalibrator
- java.lang.Object
-
- com.opengamma.strata.pricer.credit.IsdaCompliantCreditCurveCalibrator
-
- com.opengamma.strata.pricer.credit.SimpleCreditCurveCalibrator
-
public final class SimpleCreditCurveCalibrator extends IsdaCompliantCreditCurveCalibrator
Simple credit curve calibrator.This is a bootstrapper for the credit curve that is consistent with ISDA in that it will produce the same curve from the same inputs (up to numerical round-off).
The external pricer,
IsdaCdsTradePricer
, is used in the calibration.
-
-
Constructor Summary
Constructors Constructor Description SimpleCreditCurveCalibrator(AccrualOnDefaultFormula formula)
Constructors a credit curve calibrator with the accrual-on-default formula specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodalCurve
calibrate(List<ResolvedCdsTrade> calibrationCDSs, DoubleArray premiums, DoubleArray pointsUpfront, CurveName name, LocalDate valuationDate, CreditDiscountFactors discountFactors, RecoveryRates recoveryRates, ReferenceData refData)
Calibrate the ISDA compliant credit curve to points upfront and fractional spread.static SimpleCreditCurveCalibrator
standard()
Obtains the standard calibrator.-
Methods inherited from class com.opengamma.strata.pricer.credit.IsdaCompliantCreditCurveCalibrator
calibrate, getAccrualOnDefaultFormula, getArbitrageHandling, getTradePricer
-
-
-
-
Constructor Detail
-
SimpleCreditCurveCalibrator
public SimpleCreditCurveCalibrator(AccrualOnDefaultFormula formula)
Constructors a credit curve calibrator with the accrual-on-default formula specified.- Parameters:
formula
- the accrual-on-default formula
-
-
Method Detail
-
standard
public static SimpleCreditCurveCalibrator standard()
Obtains the standard calibrator.The original ISDA accrual-on-default formula (version 1.8.2 and lower) is used.
- Returns:
- the standard calibrator
-
calibrate
public NodalCurve calibrate(List<ResolvedCdsTrade> calibrationCDSs, DoubleArray premiums, DoubleArray pointsUpfront, CurveName name, LocalDate valuationDate, CreditDiscountFactors discountFactors, RecoveryRates recoveryRates, ReferenceData refData)
Description copied from class:IsdaCompliantCreditCurveCalibrator
Calibrate the ISDA compliant credit curve to points upfront and fractional spread.- Specified by:
calibrate
in classIsdaCompliantCreditCurveCalibrator
- Parameters:
calibrationCDSs
- the calibration CDSpremiums
- the fractional spreadspointsUpfront
- the points upfront valuesname
- the curve namevaluationDate
- the valuation datediscountFactors
- the discount factorsrecoveryRates
- the recovery ratesrefData
- the reference data- Returns:
- the ISDA compliant credit curve
-
-