313314315316317318319320
* of iterations is exceeded */ protected void incrementIterationsCounter() throws OptimizationException { if (++iterations > maxIterations) { throw new OptimizationException(new MaxIterationsExceededException(maxIterations)); } }
176177178179180181182183
138139140141142143144145
176177178179180181182183184185186
// update partial sum sum = sum + an; } if (n >= maxIterations) { throw new MaxIterationsExceededException(maxIterations); } else { ret = Math.exp(-x + (a * Math.log(x)) - logGamma(a)) * sum; } }
163164165166167168169170171172173
q0 = q1; q1 = q2; } if (n >= maxIterations) { throw new MaxIterationsExceededException(maxIterations, "Continued fraction convergents failed to converge for value {0}", x); } return c;
162163164165166167168169
132133134135136137138139
315316317318319320321322
208209210211212213214
y1 = f.value(x1); oldx = Double.POSITIVE_INFINITY; } i++; } throw new MaxIterationsExceededException(maximalIterationCount); }
339340341342343344345
x1 = x2; y1 = y2; x2 = x; y2 = y; oldx = x; i++; } throw new MaxIterationsExceededException(maximalIterationCount); }