|
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.interest.EffectiveAndNominalInterest
Offers methods for the conversion between differing number of conversion periods for effective interest, nominal interest and the real return.
| Constructor Summary | |
EffectiveAndNominalInterest()
Creates a new instance. |
|
| Method Summary | |
double |
convertYearlyRate(double annualRate,
int noOfPeriods,
int newNoOfPeriods)
Converts the effective annualRate of (annual) interest which is quoted in
noOfPeriods-annual rate into the newNoOfPeriods-annual rate. |
double |
forceOfInterest(double interest)
Evaluates the force of interest with respect to the period considered where the associated given interest rate is expressed with respect to the same period. |
double |
nominalRateOfInterest(double interest,
int noOfPeriods)
Converts the effective annual nominal rate of interest to the nominal rate of interest convertible noOfPeriods-annual. |
double |
realReturn(double annualRate,
double inflation,
int noOfPeriods,
int newNoOfPeriods)
Calculates the real return of a newNoOfPeriods-annual rate when the
return with respect to a noOfPeriods-annual rate and the annual inflation
is known. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EffectiveAndNominalInterest()
| Method Detail |
public double convertYearlyRate(double annualRate,
int noOfPeriods,
int newNoOfPeriods)
annualRate of (annual) interest which is quoted in
noOfPeriods-annual rate into the newNoOfPeriods-annual rate.
annualRate - the interest rate in decimal format (i.e. 1 percent = 0.01) quoted with respect to noOfPeriods periodsnoOfPeriods - the number of periods per annum in which the annualRate is quotednewNoOfPeriods - the number of annual time periods the annual interest rate is compounded over
newNoOfPeriods number of compounding periods
returned in decimal format (i.e. 1 percent = 0.01).
public double realReturn(double annualRate,
double inflation,
int noOfPeriods,
int newNoOfPeriods)
newNoOfPeriods-annual rate when the
return with respect to a noOfPeriods-annual rate and the annual inflation
is known.
annualRate - the return quoted in terms of the noOfPeriods-annual rate and given in decimal format (i.e. 1 percent = 0.01). Note that this is not the inflation adjusted real return.inflation - the annual rate of inflation in decimal format (i.e. 1 percent = 0.01)noOfPeriods - the number of periods per annual in which the annualRate is quotednewNoOfPeriods - the number of annual time periods which the returned real return is quoted in
noOfPeriods-annual rate. (i.e. compounded
noOfPeriods times a year returned in decimal format (i.e. 1 percent = 0.01).public double forceOfInterest(double interest)
interest - the rate of interest in decimal format (i.e. 1 percent = 0.01) with respect to a given period (for example, daily annual etc).
public double nominalRateOfInterest(double interest,
int noOfPeriods)
noOfPeriods-annual.
interest - the annual rate of interest in decimal format (i.e. 1 percent = 0.01)noOfPeriods - the number of periods over which the converted nominal interest in expressed in terms of.
noOfPeriods-annually returned in decimal format (i.e. 1 percent = 0.01).
|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||