|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is implemented by all contexts supporting the FORWARD_RATE category. It offers access to the forward rate curve. The models providing this type of context are called models of the forward rate, as opposed to the spot rate models (both are interest rate models). The forward rate models included are:
SimplifiedBGM
HJM
| Method Summary | |
double |
getForwardRate(double yearsToStart,
double yearsToEnd)
Returns the forward rate between two future moments in time. |
double |
getInstantaneousForwardRate(double timeToMaturity)
Returns the instantaneous forward rate (i.e the present forward rate) with maturity in years timeToMaturity. |
| Methods inherited from interface webcab.lib.finance.pricing.contexts.SpotRateContext |
getSpotRate |
| Methods inherited from interface webcab.lib.finance.pricing.contexts.ScalarContext |
getValue |
| Method Detail |
public double getInstantaneousForwardRate(double timeToMaturity)
throws NotDefinedException
timeToMaturity. Note that the forward rates measures the
interest rate over a period, therefore the interest rate returned here is generally
assumed to apply from the present point in time until the maturity date.
timeToMaturity - the number of the years forward at which the forward rate is
returned.
NotDefinedException
public double getForwardRate(double yearsToStart,
double yearsToEnd)
throws NotDefinedException
yearsToStart,
and the number of years until the end of the interval yearsToEnd.
yearsToStart - the begining of the interval on which the rate appliesyearsToEnd - the end of the interval on which the rate applies
NotDefinedException
|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||