Package org.drip.state.creator
Class ScenarioCreditCurveBuilder
java.lang.Object
org.drip.state.creator.ScenarioCreditCurveBuilder
public class ScenarioCreditCurveBuilder
extends java.lang.Object
ScenarioCreditCurveBuilder implements the construction of the custom Scenario based credit curves.
It exposes the following Functions:
- Create CreditScenarioCurve from the array of calibration instruments
- Calibrate the base credit curve from the input credit instruments, measures, and the quotes
- Create a CreditCurve instance from a single node hazard rate
- Create a CreditCurve Instance from the Input Array of Survival Probabilities
- Create an instance of the CreditCurve object from a solitary hazard rate node
- Create a credit curve from an array of dates and hazard rates
- Create a credit curve from hazard rate and recovery rate term structures
Module | Product Core Module |
Library | Fixed Income Analytics |
Project | Latent State Inference and Creation Utilities |
Package | Scenario State Curve/Surface Builders |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ScenarioCreditCurveBuilder()
-
Method Summary
Modifier and Type Method Description static CreditCurveScenarioContainer
CreateCCSC(CalibratableComponent[] calibratableComponentArray)
Create CreditScenarioCurve from the array of calibration instrumentsstatic CreditCurve
Custom(java.lang.String name, JulianDate spotDate, CalibratableComponent[] calibratableComponentArray, MergedDiscountForwardCurve discountCurve, double[] calibrationQuoteArray, java.lang.String[] calibrationMeasureArray, double recovery, boolean flat)
Calibrate the base credit curve from the input credit instruments, measures, and the quotesstatic CreditCurve
Custom(java.lang.String name, JulianDate spotDate, CalibratableComponent[] calibratableComponentArray, MergedDiscountForwardCurve discountCurve, double[] calibrationQuoteArray, java.lang.String[] calibrationMeasureArray, double recovery, boolean flat, CalibrationParams calibrationParams)
Calibrate the base credit curve from the input credit instruments, measures, and the quotesstatic ExplicitBootCreditCurve
FlatHazard(int startDate, java.lang.String name, java.lang.String currency, double hazardRate, double recovery)
Create a CreditCurve instance from a single node hazard ratestatic ExplicitBootCreditCurve
Hazard(int startDate, java.lang.String name, java.lang.String currency, double[] hazardRateArray, int[] hazardDateArray, double[] recoveryRateArray, int[] recoveryDateArray, int specificDefaultDate)
Create a credit curve from hazard rate and recovery rate term structuresstatic ExplicitBootCreditCurve
Hazard(int startDate, java.lang.String name, java.lang.String currency, double hazardRate, int hazardDate, double recovery)
Create an instance of the CreditCurve object from a solitary hazard rate nodestatic ExplicitBootCreditCurve
Hazard(JulianDate startDate, java.lang.String name, java.lang.String currency, int[] dateArray, double[] hazardRateArray, double recovery)
Create a credit curve from an array of dates and hazard ratesstatic ExplicitBootCreditCurve
Survival(int startDate, java.lang.String name, java.lang.String currency, int[] survivalDateArray, double[] survivalProbabilityArray, double recovery)
Create a CreditCurve Instance from the Input Array of Survival Probabilitiesstatic ExplicitBootCreditCurve
Survival(int startDate, java.lang.String name, java.lang.String currency, java.lang.String[] survivalTenorArray, double[] survivalProbabilityArray, double recovery)
Create a CreditCurve Instance from the Input Array of Survival ProbabilitiesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScenarioCreditCurveBuilder
public ScenarioCreditCurveBuilder()
-
-
Method Details
-
CreateCCSC
public static final CreditCurveScenarioContainer CreateCCSC(CalibratableComponent[] calibratableComponentArray)Create CreditScenarioCurve from the array of calibration instruments- Parameters:
calibratableComponentArray
- Array of calibration instruments- Returns:
- CreditScenarioCurve object
-
Custom
public static final CreditCurve Custom(java.lang.String name, JulianDate spotDate, CalibratableComponent[] calibratableComponentArray, MergedDiscountForwardCurve discountCurve, double[] calibrationQuoteArray, java.lang.String[] calibrationMeasureArray, double recovery, boolean flat, CalibrationParams calibrationParams)Calibrate the base credit curve from the input credit instruments, measures, and the quotes- Parameters:
name
- Credit Curve NamespotDate
- Spot DatecalibratableComponentArray
- Array of calibration instrumentsdiscountCurve
- Discount CurvecalibrationQuoteArray
- Array of Instrument QuotescalibrationMeasureArray
- Array of calibration Measuresrecovery
- Recovery Rateflat
- Whether the Calibration is based off of a flat spreadcalibrationParams
- The Calibration Parameters- Returns:
- The cooked Credit Curve
-
Custom
public static final CreditCurve Custom(java.lang.String name, JulianDate spotDate, CalibratableComponent[] calibratableComponentArray, MergedDiscountForwardCurve discountCurve, double[] calibrationQuoteArray, java.lang.String[] calibrationMeasureArray, double recovery, boolean flat)Calibrate the base credit curve from the input credit instruments, measures, and the quotes- Parameters:
name
- Credit Curve NamespotDate
- Spot DatecalibratableComponentArray
- Array of calibration instrumentsdiscountCurve
- Discount CurvecalibrationQuoteArray
- Array of Instrument QuotescalibrationMeasureArray
- Array of calibration Measuresrecovery
- Recovery Rateflat
- Whether the Calibration is based off of a flat spread- Returns:
- The cooked Credit Curve
-
FlatHazard
public static final ExplicitBootCreditCurve FlatHazard(int startDate, java.lang.String name, java.lang.String currency, double hazardRate, double recovery)Create a CreditCurve instance from a single node hazard rate- Parameters:
startDate
- Curve epoch datename
- Credit Curve Namecurrency
- CurrencyhazardRate
- Curve hazard raterecovery
- Curve recovery- Returns:
- CreditCurve instance
-
Survival
public static final ExplicitBootCreditCurve Survival(int startDate, java.lang.String name, java.lang.String currency, int[] survivalDateArray, double[] survivalProbabilityArray, double recovery)Create a CreditCurve Instance from the Input Array of Survival Probabilities- Parameters:
startDate
- Curve epoch datename
- Credit Curve Namecurrency
- CurrencysurvivalDateArray
- Array of DatessurvivalProbabilityArray
- Array of Survival Probabilitiesrecovery
- Curve recovery- Returns:
- The CreditCurve Instance
-
Survival
public static final ExplicitBootCreditCurve Survival(int startDate, java.lang.String name, java.lang.String currency, java.lang.String[] survivalTenorArray, double[] survivalProbabilityArray, double recovery)Create a CreditCurve Instance from the Input Array of Survival Probabilities- Parameters:
startDate
- Curve epoch datename
- Credit Curve Namecurrency
- CurrencysurvivalTenorArray
- Array of Survival TenorssurvivalProbabilityArray
- Array of Survival Probabilitiesrecovery
- Curve recovery- Returns:
- The CreditCurve Instance
-
Hazard
public static final ExplicitBootCreditCurve Hazard(int startDate, java.lang.String name, java.lang.String currency, double hazardRate, int hazardDate, double recovery)Create an instance of the CreditCurve object from a solitary hazard rate node- Parameters:
startDate
- Curve epoch datename
- Credit Curve Namecurrency
- CurrencyhazardRate
- The solo hazard ratehazardDate
- Daterecovery
- Curve recovery- Returns:
- CreditCurve instance
-
Hazard
public static final ExplicitBootCreditCurve Hazard(JulianDate startDate, java.lang.String name, java.lang.String currency, int[] dateArray, double[] hazardRateArray, double recovery)Create a credit curve from an array of dates and hazard rates- Parameters:
startDate
- Curve epoch datename
- Credit Curve Namecurrency
- CurrencydateArray
- Array of dateshazardRateArray
- Array of hazard ratesrecovery
- Curve recovery- Returns:
- CreditCurve instance
-
Hazard
public static final ExplicitBootCreditCurve Hazard(int startDate, java.lang.String name, java.lang.String currency, double[] hazardRateArray, int[] hazardDateArray, double[] recoveryRateArray, int[] recoveryDateArray, int specificDefaultDate)Create a credit curve from hazard rate and recovery rate term structures- Parameters:
startDate
- Curve epoch datename
- Credit Curve Namecurrency
- CurrencyhazardRateArray
- Array of hazard rateshazardDateArray
- Matched array of hazard datesrecoveryRateArray
- Matched array of recovery ratesrecoveryDateArray
- Matched array of recovery datesspecificDefaultDate
- (Optional) Specific Default Date- Returns:
- CreditCurve instance
-