|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface YieldConvergence
This interface provides a method for converging on a yield from a specified price.
| Method Summary | |
|---|---|
double |
converge(double price,
double approximateYield,
YieldConvergable convergable)
Converge upon a yield from the provided price and approximate yield. |
double |
getPrecision()
Get the required precision. |
void |
setPrecision(double precision)
Set the required precision. |
| Method Detail |
|---|
double converge(double price,
double approximateYield,
YieldConvergable convergable)
throws CalculationException
price - price.approximateYield - A starting approximate yield.convergable - The YieldConvergable implementation
used to calculate price.
CalculationExceptionvoid setPrecision(double precision)
precision - The required precision.double getPrecision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||