Unused "import" statements.
This commit is contained in:
parent
8be7fa4343
commit
e80f7cc293
|
@ -18,10 +18,8 @@ package org.apache.commons.math4.analysis.integration;
|
||||||
|
|
||||||
import org.apache.commons.math4.analysis.UnivariateFunction;
|
import org.apache.commons.math4.analysis.UnivariateFunction;
|
||||||
import org.apache.commons.math4.analysis.solvers.UnivariateSolverUtils;
|
import org.apache.commons.math4.analysis.solvers.UnivariateSolverUtils;
|
||||||
import org.apache.commons.math4.exception.MathIllegalArgumentException;
|
|
||||||
import org.apache.commons.math4.exception.MaxCountExceededException;
|
import org.apache.commons.math4.exception.MaxCountExceededException;
|
||||||
import org.apache.commons.math4.exception.NotStrictlyPositiveException;
|
import org.apache.commons.math4.exception.NotStrictlyPositiveException;
|
||||||
import org.apache.commons.math4.exception.NullArgumentException;
|
|
||||||
import org.apache.commons.math4.exception.NumberIsTooSmallException;
|
import org.apache.commons.math4.exception.NumberIsTooSmallException;
|
||||||
import org.apache.commons.math4.exception.TooManyEvaluationsException;
|
import org.apache.commons.math4.exception.TooManyEvaluationsException;
|
||||||
import org.apache.commons.math4.util.IntegerSequence;
|
import org.apache.commons.math4.util.IntegerSequence;
|
||||||
|
@ -227,8 +225,10 @@ public abstract class BaseAbstractUnivariateIntegrator implements UnivariateInte
|
||||||
* @param f the integrand function
|
* @param f the integrand function
|
||||||
* @param lower the min bound for the interval
|
* @param lower the min bound for the interval
|
||||||
* @param upper the upper bound for the interval
|
* @param upper the upper bound for the interval
|
||||||
* @throws NullArgumentException if {@code f} is {@code null}.
|
* @throws org.apache.commons.math4.exception.NullArgumentException
|
||||||
* @throws MathIllegalArgumentException if {@code min >= max}.
|
* if {@code f} is {@code null}.
|
||||||
|
* @throws org.apache.commons.math4.exception.MathIllegalArgumentException
|
||||||
|
* if {@code min >= max}.
|
||||||
*/
|
*/
|
||||||
protected void setup(final int maxEval,
|
protected void setup(final int maxEval,
|
||||||
final UnivariateFunction f,
|
final UnivariateFunction f,
|
||||||
|
|
|
@ -19,10 +19,7 @@ package org.apache.commons.math4.analysis.integration;
|
||||||
import org.apache.commons.math4.analysis.UnivariateFunction;
|
import org.apache.commons.math4.analysis.UnivariateFunction;
|
||||||
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
|
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
|
||||||
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
|
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
|
||||||
import org.apache.commons.math4.exception.MathIllegalArgumentException;
|
|
||||||
import org.apache.commons.math4.exception.MaxCountExceededException;
|
|
||||||
import org.apache.commons.math4.exception.NotStrictlyPositiveException;
|
import org.apache.commons.math4.exception.NotStrictlyPositiveException;
|
||||||
import org.apache.commons.math4.exception.NumberIsTooSmallException;
|
|
||||||
import org.apache.commons.math4.exception.TooManyEvaluationsException;
|
import org.apache.commons.math4.exception.TooManyEvaluationsException;
|
||||||
import org.apache.commons.math4.exception.util.LocalizedFormats;
|
import org.apache.commons.math4.exception.util.LocalizedFormats;
|
||||||
import org.apache.commons.math4.util.FastMath;
|
import org.apache.commons.math4.util.FastMath;
|
||||||
|
@ -62,8 +59,9 @@ public class IterativeLegendreGaussIntegrator
|
||||||
* @param maximalIterationCount Maximum number of iterations.
|
* @param maximalIterationCount Maximum number of iterations.
|
||||||
* @throws NotStrictlyPositiveException if minimal number of iterations
|
* @throws NotStrictlyPositiveException if minimal number of iterations
|
||||||
* or number of points are not strictly positive.
|
* or number of points are not strictly positive.
|
||||||
* @throws NumberIsTooSmallException if maximal number of iterations
|
* @throws org.apache.commons.math4.exception.NumberIsTooSmallException
|
||||||
* is smaller than or equal to the minimal number of iterations.
|
* if the maximal number of iterations is smaller than or equal to the
|
||||||
|
* minimal number of iterations.
|
||||||
*/
|
*/
|
||||||
public IterativeLegendreGaussIntegrator(final int n,
|
public IterativeLegendreGaussIntegrator(final int n,
|
||||||
final double relativeAccuracy,
|
final double relativeAccuracy,
|
||||||
|
@ -100,8 +98,9 @@ public class IterativeLegendreGaussIntegrator
|
||||||
* @param maximalIterationCount Maximum number of iterations.
|
* @param maximalIterationCount Maximum number of iterations.
|
||||||
* @throws NotStrictlyPositiveException if minimal number of iterations
|
* @throws NotStrictlyPositiveException if minimal number of iterations
|
||||||
* is not strictly positive.
|
* is not strictly positive.
|
||||||
* @throws NumberIsTooSmallException if maximal number of iterations
|
* @throws org.apache.commons.math4.exception.NumberIsTooSmallException
|
||||||
* is smaller than or equal to the minimal number of iterations.
|
* if the maximal number of iterations is smaller than or equal to the
|
||||||
|
* minimal number of iterations.
|
||||||
* @throws NotStrictlyPositiveException if {@code n < 1}.
|
* @throws NotStrictlyPositiveException if {@code n < 1}.
|
||||||
*/
|
*/
|
||||||
public IterativeLegendreGaussIntegrator(final int n,
|
public IterativeLegendreGaussIntegrator(final int n,
|
||||||
|
|
|
@ -19,9 +19,6 @@ package org.apache.commons.math4.analysis.solvers;
|
||||||
|
|
||||||
import org.apache.commons.math4.analysis.UnivariateFunction;
|
import org.apache.commons.math4.analysis.UnivariateFunction;
|
||||||
import org.apache.commons.math4.exception.MaxCountExceededException;
|
import org.apache.commons.math4.exception.MaxCountExceededException;
|
||||||
import org.apache.commons.math4.exception.NoBracketingException;
|
|
||||||
import org.apache.commons.math4.exception.NullArgumentException;
|
|
||||||
import org.apache.commons.math4.exception.NumberIsTooLargeException;
|
|
||||||
import org.apache.commons.math4.exception.TooManyEvaluationsException;
|
import org.apache.commons.math4.exception.TooManyEvaluationsException;
|
||||||
import org.apache.commons.math4.util.IntegerSequence;
|
import org.apache.commons.math4.util.IntegerSequence;
|
||||||
import org.apache.commons.math4.util.MathUtils;
|
import org.apache.commons.math4.util.MathUtils;
|
||||||
|
@ -173,7 +170,8 @@ public abstract class BaseAbstractUnivariateSolver<FUNC extends UnivariateFuncti
|
||||||
* @param max Upper bound for the interval.
|
* @param max Upper bound for the interval.
|
||||||
* @param startValue Start value to use.
|
* @param startValue Start value to use.
|
||||||
* @param maxEval Maximum number of evaluations.
|
* @param maxEval Maximum number of evaluations.
|
||||||
* @exception NullArgumentException if f is null
|
* @throws org.apache.commons.math4.exception.NullArgumentException
|
||||||
|
* if {@code f} is {@code null}.
|
||||||
*/
|
*/
|
||||||
protected void setup(int maxEval,
|
protected void setup(int maxEval,
|
||||||
FUNC f,
|
FUNC f,
|
||||||
|
@ -220,8 +218,9 @@ public abstract class BaseAbstractUnivariateSolver<FUNC extends UnivariateFuncti
|
||||||
* @return the root.
|
* @return the root.
|
||||||
* @throws TooManyEvaluationsException if the maximal number of evaluations
|
* @throws TooManyEvaluationsException if the maximal number of evaluations
|
||||||
* is exceeded.
|
* is exceeded.
|
||||||
* @throws NoBracketingException if the initial search interval does not bracket
|
* @throws org.apache.commons.math4.exception.NoBracketingException
|
||||||
* a root and the solver requires it.
|
* if the initial search interval does not bracket a root and the
|
||||||
|
* solver requires it.
|
||||||
*/
|
*/
|
||||||
protected abstract double doSolve();
|
protected abstract double doSolve();
|
||||||
|
|
||||||
|
@ -257,7 +256,8 @@ public abstract class BaseAbstractUnivariateSolver<FUNC extends UnivariateFuncti
|
||||||
*
|
*
|
||||||
* @param lower Lower endpoint.
|
* @param lower Lower endpoint.
|
||||||
* @param upper Upper endpoint.
|
* @param upper Upper endpoint.
|
||||||
* @throws NumberIsTooLargeException if {@code lower >= upper}.
|
* @throws org.apache.commons.math4.exception.NumberIsTooLargeException
|
||||||
|
* if {@code lower >= upper}.
|
||||||
*/
|
*/
|
||||||
protected void verifyInterval(final double lower,
|
protected void verifyInterval(final double lower,
|
||||||
final double upper) {
|
final double upper) {
|
||||||
|
@ -270,8 +270,8 @@ public abstract class BaseAbstractUnivariateSolver<FUNC extends UnivariateFuncti
|
||||||
* @param lower Lower endpoint.
|
* @param lower Lower endpoint.
|
||||||
* @param initial Initial value.
|
* @param initial Initial value.
|
||||||
* @param upper Upper endpoint.
|
* @param upper Upper endpoint.
|
||||||
* @throws NumberIsTooLargeException if {@code lower >= initial} or
|
* @throws org.apache.commons.math4.exception.NumberIsTooLargeException
|
||||||
* {@code initial >= upper}.
|
* if {@code lower >= initial} or {@code initial >= upper}.
|
||||||
*/
|
*/
|
||||||
protected void verifySequence(final double lower,
|
protected void verifySequence(final double lower,
|
||||||
final double initial,
|
final double initial,
|
||||||
|
@ -285,9 +285,10 @@ public abstract class BaseAbstractUnivariateSolver<FUNC extends UnivariateFuncti
|
||||||
*
|
*
|
||||||
* @param lower Lower endpoint.
|
* @param lower Lower endpoint.
|
||||||
* @param upper Upper endpoint.
|
* @param upper Upper endpoint.
|
||||||
* @throws NullArgumentException if the function has not been set.
|
* @throws org.apache.commons.math4.exception.NullArgumentException
|
||||||
* @throws NoBracketingException if the function has the same sign at
|
* if the function has not been set.
|
||||||
* the endpoints.
|
* @throws org.apache.commons.math4.exception.NoBracketingException
|
||||||
|
* if the function has the same sign at the endpoints.
|
||||||
*/
|
*/
|
||||||
protected void verifyBracketing(final double lower,
|
protected void verifyBracketing(final double lower,
|
||||||
final double upper) {
|
final double upper) {
|
||||||
|
|
|
@ -19,8 +19,6 @@ package org.apache.commons.math4.util;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
import org.apache.commons.math4.exception.MaxCountExceededException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This abstract class provides a general framework for managing iterative
|
* This abstract class provides a general framework for managing iterative
|
||||||
* algorithms. The maximum number of iterations can be set, and methods are
|
* algorithms. The maximum number of iterations can be set, and methods are
|
||||||
|
@ -42,8 +40,8 @@ public class IterationManager {
|
||||||
* Creates a new instance of this class.
|
* Creates a new instance of this class.
|
||||||
*
|
*
|
||||||
* @param maxIterations Maximum number of iterations.
|
* @param maxIterations Maximum number of iterations.
|
||||||
* {@link MaxCountExceededException} will be raised at
|
* {@link org.apache.commons.math4.exception.MaxCountExceededException}
|
||||||
* counter exhaustion.
|
* will be raised at counter exhaustion.
|
||||||
*/
|
*/
|
||||||
public IterationManager(final int maxIterations) {
|
public IterationManager(final int maxIterations) {
|
||||||
this(maxIterations, null);
|
this(maxIterations, null);
|
||||||
|
@ -55,8 +53,8 @@ public class IterationManager {
|
||||||
* @param maxIterations the maximum number of iterations
|
* @param maxIterations the maximum number of iterations
|
||||||
* @param callback the function to be called when the maximum number of
|
* @param callback the function to be called when the maximum number of
|
||||||
* iterations has been reached.
|
* iterations has been reached.
|
||||||
* If {@code null}, {@link MaxCountExceededException} will be raised at
|
* If {@code null}, {@link org.apache.commons.math4.exception.MaxCountExceededException}
|
||||||
* counter exhaustion.
|
* will be raised at counter exhaustion.
|
||||||
*
|
*
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
*/
|
*/
|
||||||
|
@ -149,8 +147,8 @@ public class IterationManager {
|
||||||
* maximum number of iterations is reached. This method should be called at
|
* maximum number of iterations is reached. This method should be called at
|
||||||
* the beginning of a new iteration.
|
* the beginning of a new iteration.
|
||||||
*
|
*
|
||||||
* @throws MaxCountExceededException if the maximum number of iterations is
|
* @throws org.apache.commons.math4.exception.MaxCountExceededException
|
||||||
* reached.
|
* if the maximum number of iterations is reached.
|
||||||
*/
|
*/
|
||||||
public void incrementIterationCount() {
|
public void incrementIterationCount() {
|
||||||
iterations.increment();
|
iterations.increment();
|
||||||
|
|
Loading…
Reference in New Issue