|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.finance.futures.Interest
Within this class we consider methods for the evaluation of interest bearing investments.
Remark:
There is a close inter-relationship between interest bearing investments and the evaluation and use of futures and forward contracts.
| Constructor Summary | |
Interest()
Creates a new instance. |
|
| Method Summary | |
double |
deposit(double interest,
Date purchaseDate,
Date saleDate,
double deposit,
BusinessCalendar businessCalendar)
Calculates the return for a fixed interest bearing investment over n years |
double |
deposit(double interest,
double years,
double deposit)
Calculates the return for a fixed interest bearing investment over n years |
double |
depositCompounded(double interest,
double periods,
Date purchaseDate,
Date saleDate,
double deposit,
BusinessCalendar businessCalendar)
Calculates the return for a fixed interest bearing investment which is compounded `compoundingPeriods' times a year over n years. |
double |
depositCompounded(double interest,
double periods,
double years,
double deposit)
Calculates the return for a fixed interest bearing investment which is compounded `compoundingPeriods' times a year over n years. |
double |
depositContinuouslyCompounded(double interest,
Date purchaseDate,
Date saleDate,
double deposit,
BusinessCalendar businessCalendar)
Calculates the returns for a fixed interest bearing investment which is continuously compounded. |
double |
depositContinuouslyCompounded(double interest,
double years,
double deposit)
Calculates the returns for a fixed interest bearing investment which is continuously compounded. |
double |
interestCompoundToContinuous(double interest,
double periods)
This method converts the interest expressed in terms of compounding over `compoundedOver' times per annum to the interest expressed as its continuously compounded equivalent. |
double |
interestContinuousToCompound(double interest,
double periods)
This method converts the interest expressed in terms of continuously compounded per annum to the interest expressed as the equivalent interest rate with compounding `timesPerAnnum' times per annum |
double |
interestPeriodConversion(double m,
double n,
double interest)
This method converts the interest compounded over m periods per annum to the equivalent interest rate calculated over n periods per annum. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Interest()
| Method Detail |
public double deposit(double interest,
Date purchaseDate,
Date saleDate,
double deposit,
BusinessCalendar businessCalendar)
throws InterestDemoException
interest - the fixed interest rate paid by the investment per annumdeposit - the amount which is investedpurchaseDate - the date when the fixed interest investement was purchasedsaleDate - the date when the fixed interest investment was soldbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
InterestDemoException
public double deposit(double interest,
double years,
double deposit)
throws InterestDemoException
interest - the fixed interest rate paid by the investment per annumyears - the number of years over which the investment is helddeposit - the amount which is invested
InterestDemoException
public double depositCompounded(double interest,
double periods,
Date purchaseDate,
Date saleDate,
double deposit,
BusinessCalendar businessCalendar)
throws InterestDemoException
interest - the fixed interest rate paid by the investment per annumperiods - the number of times per annum which the interest is compounded overdeposit - the amount which is investedpurchaseDate - the date when the fixed interest investement was purchasedsaleDate - the date when the fixed interest investment was soldbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
InterestDemoException
public double depositCompounded(double interest,
double periods,
double years,
double deposit)
throws InterestDemoException
interest - the fixed interest rate paid by the investment per annumperiods - the number of times per annum which the interest is compounded overyears - the number of years over which the investment in helddeposit - the amount which is invested
InterestDemoException
public double depositContinuouslyCompounded(double interest,
Date purchaseDate,
Date saleDate,
double deposit,
BusinessCalendar businessCalendar)
throws InterestDemoException
interest - the fixed interest rate over the perioddeposit - the amount which is investedpurchaseDate - the date when the fixed interest investement was purchasedsaleDate - the date when the fixed interest investment was soldbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
InterestDemoException
public double depositContinuouslyCompounded(double interest,
double years,
double deposit)
throws InterestDemoException
interest - the fixed interest rate over the periodyears - the number of years over which the investment is helddeposit - the amount which is invested
InterestDemoException
public double interestCompoundToContinuous(double interest,
double periods)
throws InterestDemoException
interest - the rate of interest with compounding m times per annumperiods - the number of periods per annum which the interest is compounded
InterestDemoException
public double interestContinuousToCompound(double interest,
double periods)
throws InterestDemoException
interest - the continuously compounded interest rateperiods - the number of periods per annum which the compound interest is expressed over
InterestDemoException
public double interestPeriodConversion(double m,
double n,
double interest)
throws InterestDemoException
m - the number of input interest rate compounding periodsn - the number of output interest rate compounding periodsinterest - the interest rate expressed as the compound interest rate over m periods
InterestDemoException
|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||