|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.finance.bonds.CalculatingZeroRates
Within this class we offer:
Application of the zero Rate
The n-year zero (coupon) rate is the rate of interest earned on an investment which is issued (i.e. starts) today and matures (i.e. ends) in exactly n-years. The zero rate is a convenient short hand way to compare the return from interest based investments without needing to go into details concerning the coupon payment structure and compounding conventions used.
| Constructor Summary | |
CalculatingZeroRates()
Creates a new instance. |
|
| Method Summary | |
double |
zeroRateBootstrap(Date evaluationDate,
Date maturityDate,
double[] couponPayments,
Date[] couponPaymentDates,
double[] zeroRates,
double marketPrice,
double principleSum,
BusinessCalendar businessCalendar)
Evaluates the zero rate from the price and coupon structure of the bond using the bootstrap method. |
double |
zeroRateBootstrap(double time2Maturity,
double[] couponPayments,
double[] time2Coupons,
double[] zeroRates,
double marketPrice,
double principleSum)
Evaluates the zero rate from the price and coupon structure of the bond using the bootstrap method. |
double |
zeroRateCurve(double[] zeroRates,
Date evaluationDate,
Date[] maturityDates,
double maturityRequired,
BusinessCalendar businessCalendar)
Evaluates a zero rate of a given maturity by constructing the zero rate curve from known zero rates. |
double |
zeroRateCurve(double[] zeroRates,
double[] maturities,
double maturityRequired)
Evaluates a zero rate of a given maturity by constructing the zero rate curve from known zero rates. |
double |
zeroRateFromZeroBond(Date evaluationDate,
Date maturityDate,
double principleSum,
double marketPrice,
BusinessCalendar businessCalendar)
Evaluates the continuously compounded zero rate implied from the market price of a zero coupon bond. |
double |
zeroRateFromZeroBond(double time2Maturity,
double principleSum,
double marketPrice)
Evaluates the continuously compounded zero rate implied from the market price of a zero coupon bond. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CalculatingZeroRates()
| Method Detail |
public double zeroRateFromZeroBond(Date evaluationDate,
Date maturityDate,
double principleSum,
double marketPrice,
BusinessCalendar businessCalendar)
Remarks:
principleSum - the principle sum of the bond (also known as the face value)marketPrice - the market price of the bondevaluationDate - the date when the zero rate of the bond is being evaluated.maturityDate - the date when the bond maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
public double zeroRateFromZeroBond(double time2Maturity,
double principleSum,
double marketPrice)
Remarks:
time2Maturity - the time in years expressed in decimal format (i.e. 6 months = 0.5) until the bond maturesprincipleSum - the principle sum of the bond (also known as the face value)marketPrice - the market price of the bond
public double zeroRateBootstrap(Date evaluationDate,
Date maturityDate,
double[] couponPayments,
Date[] couponPaymentDates,
double[] zeroRates,
double marketPrice,
double principleSum,
BusinessCalendar businessCalendar)
Remark: This procedure can to applied to the construction of the zero rate curve (i.e. the zero rate against the maturity of the interest rate asset).
couponPayments - an array where the first term corresponds to the first coupon and the second term corresponds to the second coupon and so on...zeroRates - an array where the first term corresponds to the zero rate of the maturity of the first coupon payment and the second term corresponds to the zero rate of the second coupon payment. Note that, each of the zero rates for each maturity is given in decimal format (for example, 5 percent = 0.05).marketPrice - the market price of the coupon paying bondprincipleSum - the principle sum of the coupon paying bond which is repaid at the maturity of the bondcouponPaymentDates - an array of dates where the first element corresponds to the payment date of the first coupon and the second element corresponds to the payment date of the second coupon and so on...evaluationDate - the date when the bonds zero rate is evaluatedmaturityDate - the date when the bond maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
public double zeroRateBootstrap(double time2Maturity,
double[] couponPayments,
double[] time2Coupons,
double[] zeroRates,
double marketPrice,
double principleSum)
Remark: This procedure can to applied to the construction of the zero rate curve (i.e. the zero rate against the maturity of the interest rate asset).
time2Maturity - the time in years expressed in decimal format (i.e. 3 years 6 months = 3.5) until the bond maturescouponPayments - an array where the first term corresponds to the first coupon and the second term corresponds to the second coupon and so on...time2Coupons - an array where the first term corresponds to the time until the first coupon payment and the second term corresponds to the time until the second payments and so on...zeroRates - an array where the first term corresponds to the zero rate of the maturity of the first coupon payment and the second term corresponds to the zero rate of the second coupon payment. Note that, each of the zero rates for each maturity is given in decimal format (for example, 5 percent = 0.05).marketPrice - the market price of the coupon paying bondprincipleSum - the principle sum of the coupon paying bond which is repaid at the maturity of the bond
public double zeroRateCurve(double[] zeroRates,
Date evaluationDate,
Date[] maturityDates,
double maturityRequired,
BusinessCalendar businessCalendar)
zeroRates - an array where the 1st term corresponds to the known zero rate with the lowest maturity, and the second term corresponds to the zero rate with the next lowest maturity and so on.maturityRequired - this the maturity of the zero rate which will be returned by the methodevaluationDate - the date when the zero rate curve in constructed. Note that the zero rate curve just like the zero rates themselves will vary with time.maturityDates - the dates which correspond to the maturities of the zero rates. That is, the first maturity date corresponds to the maturity of the zero rate with the nearest maturity, the second (date) term corresponds to the maturity of the zero rate with the next nearest maturity.businessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
public double zeroRateCurve(double[] zeroRates,
double[] maturities,
double maturityRequired)
zeroRates - an array where the 1st term corresponds to the known zero rate with the lowest maturity, and the second term corresponds to the zero rate with the next lowest maturity and so on.maturities - an array where the 1st term corresponds to the maturity (in years) of the zero rate with the lowest maturity, the second term corresponds to the maturity (in years) of the zero rate with the next lowest maturity and so on. Note that each maturity is given in years in decimal format (i.e. 3 years 6 months = 3.5) and each of the maturities must be distinct.maturityRequired - this the maturity of the zero rate which will be returned by the method
|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||