Package org.drip.analytics.output
Class BondRVMeasures
java.lang.Object
org.drip.analytics.output.BondRVMeasures
public class BondRVMeasures
extends java.lang.Object
BondRVMeasures encapsulates the comprehensive set of RV measures calculated for the bond to the
appropriate exercise:
- Work-out Information
- Price, Yield, and Yield01
- Spread Measures: Asset Swap/Credit/G/I/OAS/PECS/TSY/Z
- Basis Measures: Bond Basis, Credit Basis, Yield Basis
- Duration Measures: Macaulay/Modified Duration, Convexity
- 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 BondRVMeasures(double dblPrice, double dblBondBasis, double dblZSpread, double dblGSpread, double dblISpread, double dblOASpread, double dblTSYSpread, double dblDiscountMargin, double dblAssetSwapSpread, double dblCreditBasis, double dblPECS, double dblYield01, double dblModifiedDuration, double dblMacaulayDuration, double dblConvexity, WorkoutInfo wi)
BondRVMeasures ctr -
Method Summary
Modifier and Type Method Description double
asw()
Retrieve the Asset Swap Spreaddouble
bondBasis()
Retrieve the Bond Basisdouble
convexity()
Retrieve the Convexitydouble
creditBasis()
Retrieve the Credit Basisdouble
discountMargin()
Retrieve the Discount Margindouble
gSpread()
Retrieve the G Spreaddouble
iSpread()
Retrieve the I Spreaddouble
macaulayDuration()
Retrieve the Macaulay Durationdouble
modifiedDuration()
Retrieve the Modified Durationdouble
oas()
Retrieve the OASdouble
pecs()
Retrieve the PECSdouble
price()
Retrieve the PriceCaseInsensitiveTreeMap<java.lang.Double>
toMap(java.lang.String strPrefix)
Return the state as a measure mapdouble
tsySpread()
Retrieve the TSY SpreadWorkoutInfo
wi()
Retrieve the Work-out Infodouble
yield01()
Retrieve the Yield01double
zSpread()
Retrieve the Z SpreadMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BondRVMeasures
public BondRVMeasures(double dblPrice, double dblBondBasis, double dblZSpread, double dblGSpread, double dblISpread, double dblOASpread, double dblTSYSpread, double dblDiscountMargin, double dblAssetSwapSpread, double dblCreditBasis, double dblPECS, double dblYield01, double dblModifiedDuration, double dblMacaulayDuration, double dblConvexity, WorkoutInfo wi) throws java.lang.ExceptionBondRVMeasures ctr- Parameters:
dblPrice
- BondRV Clean PricedblBondBasis
- BondRV Bond BasisdblZSpread
- BondRV Z SpreaddblGSpread
- BondRV G SpreaddblISpread
- BondRV I SpreaddblOASpread
- BondRV OASdblTSYSpread
- BondRV TSY SpreaddblDiscountMargin
- BondRV Asset Swap SpreaddblAssetSwapSpread
- BondRV Asset Swap SpreaddblCreditBasis
- BondRV Credit BasisdblPECS
- BondRV PECSdblYield01
- BondRV Yield01dblModifiedDuration
- BondRV Modified DurationdblMacaulayDuration
- BondRV Macaulay DurationdblConvexity
- BondRV Convexitywi
- BondRV work-out info- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
-
Method Details
-
wi
Retrieve the Work-out Info- Returns:
- Work-out Info
-
pecs
public double pecs()Retrieve the PECS- Returns:
- PECS
-
price
public double price()Retrieve the Price- Returns:
- Price
-
gSpread
public double gSpread()Retrieve the G Spread- Returns:
- G Spread
-
iSpread
public double iSpread()Retrieve the I Spread- Returns:
- I Spread
-
yield01
public double yield01()Retrieve the Yield01- Returns:
- Yield01
-
zSpread
public double zSpread()Retrieve the Z Spread- Returns:
- Z Spread
-
oas
public double oas()Retrieve the OAS- Returns:
- OAS
-
bondBasis
public double bondBasis()Retrieve the Bond Basis- Returns:
- Bond Basis
-
convexity
public double convexity()Retrieve the Convexity- Returns:
- Convexity
-
tsySpread
public double tsySpread()Retrieve the TSY Spread- Returns:
- TSY Spread
-
creditBasis
public double creditBasis()Retrieve the Credit Basis- Returns:
- Credit Basis
-
discountMargin
public double discountMargin()Retrieve the Discount Margin- Returns:
- Discount Margin
-
asw
public double asw()Retrieve the Asset Swap Spread- Returns:
- Asset Swap Spread
-
macaulayDuration
public double macaulayDuration()Retrieve the Macaulay Duration- Returns:
- Macaulay Duration
-
modifiedDuration
public double modifiedDuration()Retrieve the Modified Duration- Returns:
- Modified Duration
-
toMap
Return the state as a measure map- Parameters:
strPrefix
- RV Measure name prefix- Returns:
- Map of the RV measures
-