com.ftlabs.fisa.calc.msrb
Class MSRBFixedInterestRateCalculator
java.lang.Object
com.ftlabs.fisa.calc.AbstractCalculator
com.ftlabs.fisa.calc.MultipleCashFlowCalculator
com.ftlabs.fisa.calc.MultiplePeriodCalculator
com.ftlabs.fisa.calc.FixedInterestRateCalculator
com.ftlabs.fisa.calc.msrb.MSRBFixedInterestRateCalculator
- All Implemented Interfaces:
- Calculator, YieldConvergable, java.io.Serializable
public class MSRBFixedInterestRateCalculator
- extends FixedInterestRateCalculator
- See Also:
- Serialized Form
| Methods inherited from class com.ftlabs.fisa.calc.MultipleCashFlowCalculator |
calculateConvexity, calculateEstimatedMacaulayDuration, calculateEstimatedModifiedDuration, calculateEstimatedModifiedDuration, calculateInterestOnInterest, calculateMacaulayDuration, calculateModifiedDuration, calculateModifiedDuration, calculateYieldValue1_32, getCashFlowDate, getCashFlowDate, getPrincipal, getRedemption, getSettlementDate, getTotalCashFlow, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSRBFixedInterestRateCalculator
public MSRBFixedInterestRateCalculator(FISADate settlementDate,
Redemption redemption,
double parValue,
double interestRate,
DayCountBasis dayCountBasis,
int interestFrequency,
boolean eomAdjust,
FISADate datedDate,
FISADate firstInterestDate)
throws CalculationException
- Throws:
CalculationException
setValues
public void setValues(FISADate settlementDate,
Redemption redemption,
double parValue,
double interestRate,
DayCountBasis dayCountBasis,
int interestFrequency,
boolean eomAdjust,
FISADate datedDate,
FISADate firstInterestDate)
throws CalculationException
- Overrides:
setValues in class FixedInterestRateCalculator
- Throws:
CalculationException
calculatePrice
public double calculatePrice(double yield)
throws CalculationException
- Description copied from interface:
Calculator
- Calculate price for the given yield.
- Specified by:
calculatePrice in interface Calculator- Specified by:
calculatePrice in interface YieldConvergable- Overrides:
calculatePrice in class FixedInterestRateCalculator
- Parameters:
yield - yield
- Returns:
- price as calculated for the given yield.
- Throws:
CalculationException