public class ForwardHazardCreditCurve extends ExplicitBootCreditCurve
| Constructor and Description |
|---|
ForwardHazardCreditCurve(int iStartDate,
CreditLabel label,
java.lang.String strCurrency,
double[] adblHazardRate,
int[] aiHazardDate,
double[] adblRecoveryRate,
int[] aiRecoveryDate,
int iSpecificDefaultDate)
Create a credit curve from hazard rate and recovery rate term structures
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bumpNodeValue(int iNodeIndex,
double dblValue)
Bump the node value at the node specified the index by the value
|
CreditCurve |
customTweakManifestMeasure(java.lang.String strManifestMeasure,
ManifestMeasureTweak mmtp)
Create a LatentState Instance from the Manifest Measure Tweak Parameters
|
Curve |
customTweakQuantificationMetric(ManifestMeasureTweak rvtp)
Create a LatentState Instance from the Quantification Metric Tweak Parameters
|
CreditCurve |
flatCurve(double dblFlatNodeValue,
boolean bSingleNode,
double dblRecovery)
Create a flat hazard curve from the inputs
|
ForwardHazardCreditCurve |
parallelShiftManifestMeasure(java.lang.String strManifestMeasure,
double dblShift)
Create a LatentState Instance from the Manifest Measure Parallel Shift
|
ForwardHazardCreditCurve |
parallelShiftQuantificationMetric(double dblShift)
Create a LatentState Instance from the Quantification Metric Parallel Shift
|
double |
recovery(int iDate)
Calculate the recovery rate to the given date
|
boolean |
setFlatValue(double dblValue)
Set the flat value across all the nodes
|
boolean |
setNodeValue(int iNodeIndex,
double dblValue)
Set the Value/Slope at the Node specified by the Index
|
ForwardHazardCreditCurve |
shiftManifestMeasure(int iSpanIndex,
java.lang.String strManifestMeasure,
double dblShift)
Create a LatentState Instance from the Shift of the Specified Manifest Measure
|
double |
survival(int iDate)
Calculate the survival to the given date
|
calibComp, currency, effectiveRecovery, effectiveRecovery, effectiveRecovery, effectiveSurvival, effectiveSurvival, effectiveSurvival, epoch, hazard, hazard, hazard, label, manifestMeasure, recovery, recovery, setCCIS, setInstrCalibInputs, setSpecificDefault, survival, survival, unsetSpecificDefaultpublic ForwardHazardCreditCurve(int iStartDate,
CreditLabel label,
java.lang.String strCurrency,
double[] adblHazardRate,
int[] aiHazardDate,
double[] adblRecoveryRate,
int[] aiRecoveryDate,
int iSpecificDefaultDate)
throws java.lang.Exception
iStartDate - Curve Epoch datelabel - Credit Curve LabelstrCurrency - CurrencyadblHazardRate - Matched array of hazard ratesaiHazardDate - Matched array of hazard datesadblRecoveryRate - Matched array of recovery ratesaiRecoveryDate - Matched array of recovery datesiSpecificDefaultDate - (Optional) Specific Default Datejava.lang.Exception - Thrown if inputs are invalidpublic double survival(int iDate)
throws java.lang.Exception
CreditCurvesurvival in class CreditCurveiDate - Datejava.lang.Exception - Thrown if the survival probability cannot be calculatedpublic double recovery(int iDate)
throws java.lang.Exception
CreditCurverecovery in class CreditCurveiDate - Datejava.lang.Exception - Thrown if the Recovery rate cannot be calculatedpublic ForwardHazardCreditCurve parallelShiftQuantificationMetric(double dblShift)
LatentStatedblShift - Parallel shift of the Quantification Metricpublic Curve customTweakQuantificationMetric(ManifestMeasureTweak rvtp)
LatentStatervtp - Quantification Metric Tweak Parameterspublic ForwardHazardCreditCurve parallelShiftManifestMeasure(java.lang.String strManifestMeasure, double dblShift)
LatentStatestrManifestMeasure - The Specified Manifest MeasuredblShift - Parallel shift of the Manifest Measurepublic ForwardHazardCreditCurve shiftManifestMeasure(int iSpanIndex, java.lang.String strManifestMeasure, double dblShift)
LatentStateiSpanIndex - Index into the Span that identifies the InstrumentstrManifestMeasure - The Specified Manifest MeasuredblShift - Shift of the Manifest Measurepublic CreditCurve flatCurve(double dblFlatNodeValue, boolean bSingleNode, double dblRecovery)
CreditCurveflatCurve in class CreditCurvedblFlatNodeValue - Flat hazard node valuebSingleNode - Uses a single node for Calibration (True)dblRecovery - (Optional) Recovery to be used in creation of the flat curvepublic CreditCurve customTweakManifestMeasure(java.lang.String strManifestMeasure, ManifestMeasureTweak mmtp)
LatentStatestrManifestMeasure - The Specified Manifest Measuremmtp - Manifest Measure Tweak Parameterspublic boolean setNodeValue(int iNodeIndex,
double dblValue)
ExplicitBootCurveiNodeIndex - Node IndexdblValue - Node Valuepublic boolean bumpNodeValue(int iNodeIndex,
double dblValue)
ExplicitBootCurveiNodeIndex - node indexdblValue - node bump valuepublic boolean setFlatValue(double dblValue)
ExplicitBootCurvedblValue - node value