/** {@inheritDoc} */ public void trigger(int max) throws MaxCountExceededException { throw new MaxCountExceededException(max); } });
/** * Increment the iterations counter by 1. * @exception MaxCountExceededException if the maximal number of iterations is exceeded */ protected void incrementIterationsCounter() throws MaxCountExceededException { if (++iterations > maxIterations) { throw new MaxCountExceededException(maxIterations); } }
/** {@inheritDoc} */ public void trigger(int max) throws MaxCountExceededException { throw new MaxCountExceededException(max); } };
/** * Replace {@code i}-th facet of the microsphere. * Method for initializing the microsphere facets. * * @param normal Facet's normal vector. * @param copy Whether to copy the given array. * @throws DimensionMismatchException if the length of {@code n} * does not match the space dimension. * @throws MaxCountExceededException if the method has been called * more times than the size of the sphere. */ protected void add(double[] normal, boolean copy) { if (microsphere.size() >= size) { throw new MaxCountExceededException(size); } if (normal.length > dimension) { throw new DimensionMismatchException(normal.length, dimension); } microsphere.add(new Facet(copy ? normal.clone() : normal)); microsphereData.add(new FacetData(0d, 0d)); }
throw new MaxCountExceededException(maxIterations); } else if (Double.isInfinite(sum)) { ret = 1.0;
throw new MaxCountExceededException(LocalizedFormats.NON_CONVERGENT_CONTINUED_FRACTION, maxIterations, x);
throw new MaxCountExceededException(LocalizedFormats.CONVERGENCE_FAILED, MAX_ITERATIONS);
throw new MaxCountExceededException(LocalizedFormats.CONVERGENCE_FAILED, maxIter);
/** {@inheritDoc} */ public void trigger(int max) throws MaxCountExceededException { throw new MaxCountExceededException(max); } });
/** * Increment the iterations counter by 1. * @exception MaxCountExceededException if the maximal number of iterations is exceeded */ protected void incrementIterationsCounter() throws MaxCountExceededException { if (++iterations > maxIterations) { throw new MaxCountExceededException(maxIterations); } }
/** {@inheritDoc} */ public void trigger(int max) throws MaxCountExceededException { throw new MaxCountExceededException(max); } });
/** {@inheritDoc} */ public void trigger(int max) throws MaxCountExceededException { throw new MaxCountExceededException(max); } };
/** {@inheritDoc} */ public void trigger(int max) throws MaxCountExceededException { throw new MaxCountExceededException(max); } };
throw new MaxCountExceededException(maxIterations); } else if (Double.isInfinite(sum)) { ret = 1.0;
/** * Replace {@code i}-th facet of the microsphere. * Method for initializing the microsphere facets. * * @param normal Facet's normal vector. * @param copy Whether to copy the given array. * @throws DimensionMismatchException if the length of {@code n} * does not match the space dimension. * @throws MaxCountExceededException if the method has been called * more times than the size of the sphere. */ protected void add(double[] normal, boolean copy) { if (microsphere.size() >= size) { throw new MaxCountExceededException(size); } if (normal.length > dimension) { throw new DimensionMismatchException(normal.length, dimension); } microsphere.add(new Facet(copy ? normal.clone() : normal)); microsphereData.add(new FacetData(0d, 0d)); }
throw new MaxCountExceededException(LocalizedFormats.CONVERGENCE_FAILED, MAX_ITERATIONS);
throw new MaxCountExceededException(maxIterations); } else if (Double.isInfinite(sum)) { ret = 1.0;
throw new MaxCountExceededException(LocalizedFormats.NON_CONVERGENT_CONTINUED_FRACTION, maxIterations, x);
throw new MaxCountExceededException(LocalizedFormats.NON_CONVERGENT_CONTINUED_FRACTION, maxIterations, x);
throw new MaxCountExceededException(LocalizedFormats.CONVERGENCE_FAILED, MAX_ITERATIONS);