| Modifier and Type | Field and Description |
|---|---|
| private static final double | |
| private static final Logger | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueEval | evaluate(final ValueEval[]
the evaluated function arguments. Empty values are represented with
args, final int BlankEval or MissingArgEval, never null.row index of the cell containing the formula under evaluation srcRowIndex, final int column index of the cell containing the formula under evaluation srcColumnIndex)Implements org.
|
| public static double | Returns: the irr.the income values. income)Computes the internal rate of return using an estimated irr of 10 percent. |
| public static double | Returns: the irr value. The method returnsDouble.NaN
if the maximum iteration count is exceededthe income values. values, double the initial guess of irr. guess)Calculates IRR using the Newton-Raphson Method. |
| ABSOLUTE_ACCURACY | back to summary |
|---|---|
| private static final double ABSOLUTE_ACCURACY | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| MAX_ITERATION_COUNT | back to summary |
|---|---|
| private static final int MAX_ITERATION_COUNT | |
| Irr | back to summary |
|---|---|
| public Irr() | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(final ValueEval[] args, final int srcRowIndex, final int srcColumnIndex) Implements org.
| |
| irr | back to summary |
|---|---|
| public static double irr(double[] income) Computes the internal rate of return using an estimated irr of 10 percent.
| |
| irr | back to summary |
|---|---|
| public static double irr(double[] values, double guess) Calculates IRR using the Newton-Raphson Method.
Starting with the guess, the method cycles through the calculation until the result
is accurate within 0.00001 percent. If IRR can't find a result that works
after 1000 tries, the The implementation is inspired by the NewtonSolver from the Apache Commons-Math library,
| |