com.ftlabs.fisa.calc
Class BinaryYieldConvergence
java.lang.Object
com.ftlabs.fisa.calc.AbstractYieldConvergence
com.ftlabs.fisa.calc.BinaryYieldConvergence
- All Implemented Interfaces:
- YieldConvergence, java.io.Serializable
public class BinaryYieldConvergence
- extends AbstractYieldConvergence
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryYieldConvergence
public BinaryYieldConvergence()
BinaryYieldConvergence
public BinaryYieldConvergence(double precision)
BinaryYieldConvergence
public BinaryYieldConvergence(double precision,
double adjustmentSteps)
converge
public double converge(double price,
double approximateYield,
YieldConvergable convergable)
throws CalculationException
- Description copied from interface:
YieldConvergence
- Converge upon a yield from the provided price and approximate yield.
- Parameters:
price - price.approximateYield - A starting approximate yield.convergable - The YieldConvergable implementation
used to calculate price.
- Returns:
- yield.
- Throws:
CalculationException
setAdjustmentSteps
public void setAdjustmentSteps(double adjustmentSteps)
getAdjustmentSteps
public double getAdjustmentSteps()