Package org.drip.analytics.output
Class BondWorkoutMeasures
java.lang.Object
org.drip.analytics.output.BondWorkoutMeasures
public class BondWorkoutMeasures
extends java.lang.Object
BondWorkoutMeasures encapsulates the parsimonius yet complete set of measures generated out of a
full bond analytics run to a given work-out. It contains the following:
- Credit Risky/Credit Riskless Clean/Dirty Coupon Measures
- Credit Risky/Credit Riskless Par/Principal PV
- Loss Measures such as expected Recovery, Loss on instantaneous default, and default exposure with/without recovery
- Unit Coupon measures such as Accrued 01, first coupon/index rate
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Date, Cash Flow, and Cash Flow Period Measure Generation Utilities
- Package = Period Product Targeted Valuation Measures
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description BondWorkoutMeasures(BondCouponMeasures bcmCreditRiskyDirty, BondCouponMeasures bcmCreditRisklessDirty, double dblCreditRiskyParPV, double dblCreditRisklessParPV, double dblCreditRiskyPrincipalPV, double dblCreditRisklessPrincipalPV, double dblRecoveryPV, double dblExpectedRecovery, double dblDefaultExposure, double dblDefaultExposureNoRec, double dblLossOnInstantaneousDefault, double dblAccrued01, double dblFirstCouponRate, double dblFirstIndexRate, double dblCashPayDF)
BondWorkoutMeasures constructor -
Method Summary
Modifier and Type Method Description double
accrued01()
Retrieve the Accrued01BondCouponMeasures
creditRisklessCleanbcm()
Retrieve the Credit Risk-less Clean Bond Coupon MeasuresBondCouponMeasures
creditRisklessDirtybcm()
Retrieve the Credit Risk-less Dirty Bond Coupon Measuresdouble
creditRisklessParPV()
Retrieve the Credit Risk-less Par PVdouble
creditRisklessPrincipalPV()
Retrieve the Credit Risk-less Principal PVBondCouponMeasures
creditRiskyCleanbcm()
Retrieve the Credit Risky Clean Bond Coupon MeasuresBondCouponMeasures
creditRiskyDirtybcm()
Retrieve the Credit Risky Dirty Bond Coupon Measuresdouble
creditRiskyParPV()
Retrieve the Credit Risky Par PVdouble
creditRiskyPrincipalPV()
Retrieve the Credit Risky Principal PVdouble
defaultExposure()
Retrieve Default Exposure - Same as PV on instantaneous defaultdouble
defaultExposureNoRec()
Retrieve the Default Exposure without recovery - Same as PV on instantaneous default without recoverydouble
expectedRecovery()
Retrieve the Expected Recoverydouble
firstCouponRate()
Retrieve the First Coupon Ratedouble
firstIndexRate()
Retrieve the First Index Ratedouble
lossOnInstantaneousDefault()
Retrieve the Loss On Instantaneous Defaultdouble
recoveryPV()
Retrieve the Recovery PVCaseInsensitiveTreeMap<java.lang.Double>
toMap(java.lang.String strPrefix)
Return the state as a measure mapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BondWorkoutMeasures
public BondWorkoutMeasures(BondCouponMeasures bcmCreditRiskyDirty, BondCouponMeasures bcmCreditRisklessDirty, double dblCreditRiskyParPV, double dblCreditRisklessParPV, double dblCreditRiskyPrincipalPV, double dblCreditRisklessPrincipalPV, double dblRecoveryPV, double dblExpectedRecovery, double dblDefaultExposure, double dblDefaultExposureNoRec, double dblLossOnInstantaneousDefault, double dblAccrued01, double dblFirstCouponRate, double dblFirstIndexRate, double dblCashPayDF) throws java.lang.ExceptionBondWorkoutMeasures constructor- Parameters:
bcmCreditRiskyDirty
- Dirty credit risky BondMeasuresCouponbcmCreditRisklessDirty
- Dirty credit risk-less BondMeasuresCoupondblCreditRiskyParPV
- Credit risky Par PVdblCreditRisklessParPV
- Credit risk-less par PVdblCreditRiskyPrincipalPV
- Credit Risky Principal PVdblCreditRisklessPrincipalPV
- Credit Risk-less Principal PVdblRecoveryPV
- Recovery PVdblExpectedRecovery
- Expected RecoverydblDefaultExposure
- PV on instantaneous defaultdblDefaultExposureNoRec
- PV on instantaneous default with zero recoverydblLossOnInstantaneousDefault
- Loss On Instantaneous DefaultdblAccrued01
- Accrued01dblFirstCouponRate
- First Coupon RatedblFirstIndexRate
- First Index RatedblCashPayDF
- Cash Pay Discount Factor- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
-
Method Details
-
creditRiskyCleanbcm
Retrieve the Credit Risky Clean Bond Coupon Measures- Returns:
- Credit Risky Clean Bond Coupon Measures
-
creditRisklessCleanbcm
Retrieve the Credit Risk-less Clean Bond Coupon Measures- Returns:
- Credit Risk-less Clean Bond Coupon Measures
-
creditRiskyDirtybcm
Retrieve the Credit Risky Dirty Bond Coupon Measures- Returns:
- Credit Risky Dirty Bond Coupon Measures
-
creditRisklessDirtybcm
Retrieve the Credit Risk-less Dirty Bond Coupon Measures- Returns:
- Credit Risk-less Dirty Bond Coupon Measures
-
accrued01
public double accrued01()Retrieve the Accrued01- Returns:
- Accrued01
-
firstCouponRate
public double firstCouponRate()Retrieve the First Coupon Rate- Returns:
- First Coupon Rate
-
firstIndexRate
public double firstIndexRate()Retrieve the First Index Rate- Returns:
- First Index Rate
-
creditRiskyParPV
public double creditRiskyParPV()Retrieve the Credit Risky Par PV- Returns:
- The Credit Risky Par PV
-
creditRisklessParPV
public double creditRisklessParPV()Retrieve the Credit Risk-less Par PV- Returns:
- The Credit Risk-less Par PV
-
creditRiskyPrincipalPV
public double creditRiskyPrincipalPV()Retrieve the Credit Risky Principal PV- Returns:
- The Credit Risky Principal PV
-
creditRisklessPrincipalPV
public double creditRisklessPrincipalPV()Retrieve the Credit Risk-less Principal PV- Returns:
- The Credit Risk-less Principal PV
-
recoveryPV
public double recoveryPV()Retrieve the Recovery PV- Returns:
- The Recovery PV
-
expectedRecovery
public double expectedRecovery()Retrieve the Expected Recovery- Returns:
- The Expected Recovery
-
defaultExposure
public double defaultExposure()Retrieve Default Exposure - Same as PV on instantaneous default- Returns:
- The Default Exposure
-
defaultExposureNoRec
public double defaultExposureNoRec()Retrieve the Default Exposure without recovery - Same as PV on instantaneous default without recovery- Returns:
- The Default Exposure without recovery
-
lossOnInstantaneousDefault
public double lossOnInstantaneousDefault()Retrieve the Loss On Instantaneous Default- Returns:
- Loss On Instantaneous Default
-
toMap
Return the state as a measure map- Parameters:
strPrefix
- Measure name prefix- Returns:
- Map of the measures
-