|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.calc.AbstractCalculator
public abstract class AbstractCalculator
| Constructor Summary | |
|---|---|
AbstractCalculator()
|
|
| Method Summary | |
|---|---|
protected static double |
calculateApproximateYield(double price,
double redemptionValue,
double interestRate,
int interestFrequency,
int remainingPeriods)
price and redemptionValue are passed as per one currency unit of face value |
protected static double |
calculateMPCIPrice(double yield,
double redemptionValue,
double interestRate,
int interestFrequency,
int remainingPeriods,
double aif,
double df,
double fcf,
double lcf,
double ldf)
This calculates a Multiple Period Compounded Interest price, per one currency unit of face value. |
protected static double |
calculateSPSIPrice(double yield,
double redemptionValue,
double interestRate,
int interestFrequency,
double aif,
double df,
double lcf)
This calculates a Single Period Simple Interest price. |
protected static double |
calculateSPSIYield(double price,
double redemptionValue,
double interestRate,
int interestFrequency,
double aif,
double df,
double lcf)
This calculates a Single Period Simple Interest yield. |
double |
calculateTotalInterestFlows()
A convenience method to total all interest cashflows between the settlement to redemption period. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCalculator()
| Method Detail |
|---|
protected static double calculateMPCIPrice(double yield,
double redemptionValue,
double interestRate,
int interestFrequency,
int remainingPeriods,
double aif,
double df,
double fcf,
double lcf,
double ldf)
throws CalculationException
redemptionValue - The redemption value per one currency unit of
face value, with any applicable tax adjustments included.
CalculationException
protected static double calculateSPSIPrice(double yield,
double redemptionValue,
double interestRate,
int interestFrequency,
double aif,
double df,
double lcf)
throws CalculationException
CalculationException
protected static double calculateSPSIYield(double price,
double redemptionValue,
double interestRate,
int interestFrequency,
double aif,
double df,
double lcf)
throws CalculationException
price - The price value per one currency unit of face value.redemptionValue - The redemption value per one currency unit of
face value, with any applicable tax adjustments included.
CalculationException
protected static double calculateApproximateYield(double price,
double redemptionValue,
double interestRate,
int interestFrequency,
int remainingPeriods)
public double calculateTotalInterestFlows()
throws CalculationException
calculateTotalInterestFlows in interface CalculatorCalculationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||