Class FastCreditCurveCalibrator
- java.lang.Object
-
- com.opengamma.strata.pricer.credit.IsdaCompliantCreditCurveCalibrator
-
- com.opengamma.strata.pricer.credit.FastCreditCurveCalibrator
-
public final class FastCreditCurveCalibrator extends IsdaCompliantCreditCurveCalibrator
Fast credit curve calibrator.This is a fast 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 CDS pricer is internally implemented for fast calibration.
-
-
Constructor Summary
Constructors Constructor Description FastCreditCurveCalibrator(AccrualOnDefaultFormula formula)
Constructs a credit curve builder with the accrual-on-default formula specified.FastCreditCurveCalibrator(AccrualOnDefaultFormula formula, ArbitrageHandling arbHandling)
Constructs a credit curve builder with accrual-on-default formula and arbitrage handing specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodalCurve
calibrate(List<ResolvedCdsTrade> calibrationCDSs, DoubleArray flactionalSpreads, 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 FastCreditCurveCalibrator
standard()
Obtains the standard calibrator.-
Methods inherited from class com.opengamma.strata.pricer.credit.IsdaCompliantCreditCurveCalibrator
calibrate, getAccrualOnDefaultFormula, getArbitrageHandling, getTradePricer
-
-
-
-
Constructor Detail
-
FastCreditCurveCalibrator
public FastCreditCurveCalibrator(AccrualOnDefaultFormula formula)
Constructs a credit curve builder with the accrual-on-default formula specified.The arbitrage handling 'ignore' is used.
- Parameters:
formula
- the accrual-on-default formula
-
FastCreditCurveCalibrator
public FastCreditCurveCalibrator(AccrualOnDefaultFormula formula, ArbitrageHandling arbHandling)
Constructs a credit curve builder with accrual-on-default formula and arbitrage handing specified.- Parameters:
formula
- the accrual on default formulaearbHandling
- the arbitrage handling
-
-
Method Detail
-
standard
public static FastCreditCurveCalibrator 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 flactionalSpreads, 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 CDSflactionalSpreads
- 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
-
-