|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.calc.DefaultAnalytics
public class DefaultAnalytics
An implementation of Analytics that attempts to balance memory and CPU usage by caching only the values with more complex formulas, and values that are needed for multiple methods.
| Field Summary | |
|---|---|
protected double |
intOnInt
|
protected double |
totalInterestFlows
|
| Constructor Summary | |
|---|---|
DefaultAnalytics(Calculator calculator,
double price)
|
|
DefaultAnalytics(Calculator calculator,
double price,
double yield)
|
|
| Method Summary | |
|---|---|
double |
getAccruedInterest()
Get the accrued interest. |
double |
getAnalyticValue(AnalyticValueType type)
Get an analytic value of the provided AnalyticValueType. |
Calculator |
getCalculator()
Get the calculator that was used to create this Analytics object. |
double |
getConvexity()
Get the convexity. |
double |
getEstimatedConvexity()
Get the estimated convexity. |
double |
getEstimatedMacaulayDuration()
Get the estimated Macaulay duration. |
double |
getEstimatedModifiedDuration()
Get the estimated modified duration. |
double |
getInterestOnInterest()
Get interest on interest using an assumed reinvestment yield that is equal to yield. |
double |
getInterestOnInterest(double reinvestmentYield)
Get interest on interest. |
double |
getMacaulayDuration()
Get the Macaulay duration |
double |
getModifiedDuration()
Get the modified duration |
double |
getPrice()
Get the price. |
double |
getPriceValue1BP()
Get the average price value obtained by varying the yield up and down by one basis point. |
Redemption |
getRedemption()
Get the Redemption object to which this Analytics object is
calculated. |
double |
getTotalInterestFlows()
Get the total interest flows. |
double |
getYield()
Get the yield. |
double |
getYieldValue1_32()
Get the average yield value obtained by varying the price up and down by 1/32. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double totalInterestFlows
protected double intOnInt
| Constructor Detail |
|---|
public DefaultAnalytics(Calculator calculator,
double price)
public DefaultAnalytics(Calculator calculator,
double price,
double yield)
| Method Detail |
|---|
public Redemption getRedemption()
Redemption object to which this Analytics object is
calculated.
getRedemption in interface AnalyticsRedemption object to which this Analytics object
is calculated.public Calculator getCalculator()
getCalculator in interface Analytics
public double getPrice()
throws CalculationException
getPrice in interface AnalyticsCalculationException
public double getYield()
throws CalculationException
getYield in interface AnalyticsCalculationException
public double getAnalyticValue(AnalyticValueType type)
throws CalculationException
AnalyticValueType.
getAnalyticValue in interface Analyticstype - the type of analytic value to get
CalculationException
public double getMacaulayDuration()
throws CalculationException
getMacaulayDuration in interface AnalyticsCalculationException
public double getModifiedDuration()
throws CalculationException
getModifiedDuration in interface AnalyticsCalculationException
public double getConvexity()
throws CalculationException
getConvexity in interface AnalyticsCalculationException
public double getPriceValue1BP()
throws CalculationException
getPriceValue1BP in interface AnalyticsCalculationException
public double getYieldValue1_32()
throws CalculationException
getYieldValue1_32 in interface AnalyticsCalculationException
public double getEstimatedMacaulayDuration()
throws CalculationException
getEstimatedMacaulayDuration in interface AnalyticsCalculationException
public double getEstimatedModifiedDuration()
throws CalculationException
getEstimatedModifiedDuration in interface AnalyticsCalculationException
public double getEstimatedConvexity()
throws CalculationException
getEstimatedConvexity in interface AnalyticsCalculationException
public double getTotalInterestFlows()
throws CalculationException
getTotalInterestFlows in interface AnalyticsCalculationException
public double getInterestOnInterest()
throws CalculationException
getInterestOnInterest in interface AnalyticsCalculationException
public double getInterestOnInterest(double reinvestmentYield)
throws CalculationException
getInterestOnInterest in interface AnalyticsreinvestmentYield -
CalculationException
public double getAccruedInterest()
throws CalculationException
getAccruedInterest in interface AnalyticsCalculationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||