Package org.drip.analytics.output
Class BondCouponMeasures
java.lang.Object
org.drip.analytics.output.BondCouponMeasures
public class BondCouponMeasures
extends java.lang.Object
BondCouponMeasures encapsulates the parsimonious but complete set of the cash-flow oriented coupon
measures generated out of a full bond analytics run to a given work-out. These are:
- DV01
- PV Measures (Coupon PV, Index Coupon PV, PV)
- 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 BondCouponMeasures(double dblDV01, double dblIndexCouponPV, double dblCouponPV, double dblPV)
BondCouponMeasures constructor -
Method Summary
Modifier and Type Method Description boolean
adjustForAccrual(double dblAccrued01, double dblCoupon, double dblIndex, boolean bDirtyFromClean)
Adjust Measures for accruedboolean
adjustForSettlement(double dblCashPayDF)
Adjust the bond coupon measures by a cash settlement discount factordouble
couponPV()
Retrieve the Coupon PVdouble
dv01()
Retrieve the DV01double
indexCouponPV()
Retrieve the Index Coupon PVdouble
pv()
Retrieve the PVCaseInsensitiveTreeMap<java.lang.Double>
toMap(java.lang.String strPrefix)
Return the state as a named measure mapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BondCouponMeasures
public BondCouponMeasures(double dblDV01, double dblIndexCouponPV, double dblCouponPV, double dblPV) throws java.lang.ExceptionBondCouponMeasures constructor- Parameters:
dblDV01
- DV01dblIndexCouponPV
- Index Coupon PVdblCouponPV
- Coupon PVdblPV
- PV- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
-
Method Details
-
adjustForSettlement
public boolean adjustForSettlement(double dblCashPayDF)Adjust the bond coupon measures by a cash settlement discount factor- Parameters:
dblCashPayDF
- Cash Pay discount factor- Returns:
- TRUE - if the adjustment has been successfully applied
-
dv01
public double dv01()Retrieve the DV01- Returns:
- DV01
-
indexCouponPV
public double indexCouponPV()Retrieve the Index Coupon PV- Returns:
- Index Coupon PV
-
couponPV
public double couponPV()Retrieve the Coupon PV- Returns:
- Coupon PV
-
pv
public double pv()Retrieve the PV- Returns:
- PV
-
adjustForAccrual
public boolean adjustForAccrual(double dblAccrued01, double dblCoupon, double dblIndex, boolean bDirtyFromClean)Adjust Measures for accrued- Parameters:
dblAccrued01
- Accrued 01dblCoupon
- Coupon during the accrued phasedblIndex
- Index Rate during the accrued phasebDirtyFromClean
- True - Change measures from Clean to Dirty- Returns:
- True - if the adjustment has been successfully applied
-
toMap
Return the state as a named measure map- Parameters:
strPrefix
- Measure name prefix- Returns:
- Map of the measures
-