Moved the localization framework used for exceptions in the exceptions package.
Its former place (in the utils package) was misleading as utils is rather for numerical utilities, not low level library management git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@981404 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e58f83acb8
commit
6c99076d1e
|
@ -16,9 +16,9 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math;
|
package org.apache.commons.math;
|
||||||
|
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error thrown when a numerical computation can not be performed because the
|
* Error thrown when a numerical computation can not be performed because the
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math;
|
package org.apache.commons.math;
|
||||||
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error thrown when two dimensions differ.
|
* Error thrown when two dimensions differ.
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math;
|
package org.apache.commons.math;
|
||||||
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception thrown when a sample contains several entries at the same abscissa.
|
* Exception thrown when a sample contains several entries at the same abscissa.
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math;
|
package org.apache.commons.math;
|
||||||
|
|
||||||
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
|
import org.apache.commons.math.exception.Localizable;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.linear.ArrayRealVector;
|
import org.apache.commons.math.linear.ArrayRealVector;
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception thrown when an error occurs evaluating a function.
|
* Exception thrown when an error occurs evaluating a function.
|
||||||
|
|
|
@ -18,8 +18,8 @@ package org.apache.commons.math;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Signals a configuration problem with any of the factory methods.
|
* Signals a configuration problem with any of the factory methods.
|
||||||
|
|
|
@ -21,9 +21,9 @@ import java.io.PrintWriter;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,9 +26,9 @@ import java.util.ConcurrentModificationException;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
|
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for commons-math unchecked exceptions.
|
* Base class for commons-math unchecked exceptions.
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
package org.apache.commons.math;
|
package org.apache.commons.math;
|
||||||
|
|
||||||
import org.apache.commons.math.ConvergenceException;
|
import org.apache.commons.math.ConvergenceException;
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error thrown when a numerical computation exceeds its allowed
|
* Error thrown when a numerical computation exceeds its allowed
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
package org.apache.commons.math;
|
package org.apache.commons.math;
|
||||||
|
|
||||||
import org.apache.commons.math.ConvergenceException;
|
import org.apache.commons.math.ConvergenceException;
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error thrown when a numerical computation exceeds its allowed
|
* Error thrown when a numerical computation exceeds its allowed
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the <a href="http://mathworld.wolfram.com/Legendre-GaussQuadrature.html">
|
* Implements the <a href="http://mathworld.wolfram.com/Legendre-GaussQuadrature.html">
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the <a href="http://mathworld.wolfram.com/RombergIntegration.html">
|
* Implements the <a href="http://mathworld.wolfram.com/RombergIntegration.html">
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the <a href="http://mathworld.wolfram.com/SimpsonsRule.html">
|
* Implements the <a href="http://mathworld.wolfram.com/SimpsonsRule.html">
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the <a href="http://mathworld.wolfram.com/TrapezoidalRule.html">
|
* Implements the <a href="http://mathworld.wolfram.com/TrapezoidalRule.html">
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.commons.math.analysis.integration;
|
||||||
import org.apache.commons.math.ConvergingAlgorithmImpl;
|
import org.apache.commons.math.ConvergingAlgorithmImpl;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide a default implementation for several generic functions.
|
* Provide a default implementation for several generic functions.
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
package org.apache.commons.math.analysis.interpolation;
|
package org.apache.commons.math.analysis.interpolation;
|
||||||
|
|
||||||
import org.apache.commons.math.exception.DimensionMismatchException;
|
import org.apache.commons.math.exception.DimensionMismatchException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.exception.NumberIsTooSmallException;
|
import org.apache.commons.math.exception.NumberIsTooSmallException;
|
||||||
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
|
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
|
||||||
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements a linear function for interpolation of real univariate functions.
|
* Implements a linear function for interpolation of real univariate functions.
|
||||||
|
|
|
@ -21,8 +21,8 @@ import java.util.Arrays;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the <a href="http://en.wikipedia.org/wiki/Local_regression">
|
* Implements the <a href="http://en.wikipedia.org/wiki/Local_regression">
|
||||||
|
|
|
@ -19,11 +19,11 @@ package org.apache.commons.math.analysis.interpolation;
|
||||||
import org.apache.commons.math.DimensionMismatchException;
|
import org.apache.commons.math.DimensionMismatchException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
import org.apache.commons.math.util.MathUtils.OrderDirection;
|
import org.apache.commons.math.util.MathUtils.OrderDirection;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a bicubic interpolation function.
|
* Generates a bicubic interpolation function.
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
package org.apache.commons.math.analysis.interpolation;
|
package org.apache.commons.math.analysis.interpolation;
|
||||||
|
|
||||||
import org.apache.commons.math.exception.DimensionMismatchException;
|
import org.apache.commons.math.exception.DimensionMismatchException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.exception.NumberIsTooSmallException;
|
import org.apache.commons.math.exception.NumberIsTooSmallException;
|
||||||
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
|
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
|
||||||
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes a natural (also known as "free", "unclamped") cubic spline interpolation for the data set.
|
* Computes a natural (also known as "free", "unclamped") cubic spline interpolation for the data set.
|
||||||
|
|
|
@ -19,10 +19,10 @@ package org.apache.commons.math.analysis.polynomials;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.exception.NoDataException;
|
import org.apache.commons.math.exception.NoDataException;
|
||||||
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
|
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Immutable representation of a real polynomial function with real coefficients.
|
* Immutable representation of a real polynomial function with real coefficients.
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.apache.commons.math.DuplicateSampleAbscissaException;
|
||||||
import org.apache.commons.math.FunctionEvaluationException;
|
import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the representation of a real polynomial function in
|
* Implements the representation of a real polynomial function in
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.commons.math.analysis.polynomials;
|
||||||
import org.apache.commons.math.FunctionEvaluationException;
|
import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the representation of a real polynomial function in
|
* Implements the representation of a real polynomial function in
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.apache.commons.math.ArgumentOutsideDomainException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
|
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a polynomial spline function.
|
* Represents a polynomial spline function.
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the <a href="http://mathworld.wolfram.com/BrentsMethod.html">
|
* Implements the <a href="http://mathworld.wolfram.com/BrentsMethod.html">
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
|
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
|
||||||
import org.apache.commons.math.complex.Complex;
|
import org.apache.commons.math.complex.Complex;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the <a href="http://mathworld.wolfram.com/LaguerresMethod.html">
|
* Implements the <a href="http://mathworld.wolfram.com/LaguerresMethod.html">
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
|
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements <a href="http://mathworld.wolfram.com/NewtonsMethod.html">
|
* Implements <a href="http://mathworld.wolfram.com/NewtonsMethod.html">
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.apache.commons.math.ConvergingAlgorithmImpl;
|
||||||
import org.apache.commons.math.FunctionEvaluationException;
|
import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide a default implementation for several functions useful to generic
|
* Provide a default implementation for several functions useful to generic
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.ConvergenceException;
|
import org.apache.commons.math.ConvergenceException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility routines for {@link UnivariateRealSolver} objects.
|
* Utility routines for {@link UnivariateRealSolver} objects.
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,8 +24,8 @@ import java.text.ParsePosition;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.CompositeFormat;
|
import org.apache.commons.math.util.CompositeFormat;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats a Complex number in cartesian format "Re(c) + Im(c)i". 'i' can
|
* Formats a Complex number in cartesian format "Re(c) + Im(c)i". 'i' can
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.complex;
|
package org.apache.commons.math.complex;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Static implementations of common
|
* Static implementations of common
|
||||||
|
|
|
@ -25,8 +25,8 @@ import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.analysis.solvers.BrentSolver;
|
import org.apache.commons.math.analysis.solvers.BrentSolver;
|
||||||
import org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils;
|
import org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.random.RandomDataImpl;
|
import org.apache.commons.math.random.RandomDataImpl;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for continuous distributions. Default implementations are
|
* Base class for continuous distributions. Default implementations are
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for probability distributions.
|
* Base class for probability distributions.
|
||||||
|
|
|
@ -21,8 +21,8 @@ import java.io.Serializable;
|
||||||
import org.apache.commons.math.FunctionEvaluationException;
|
import org.apache.commons.math.FunctionEvaluationException;
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.random.RandomDataImpl;
|
import org.apache.commons.math.random.RandomDataImpl;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,9 +18,9 @@ package org.apache.commons.math.distribution;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Gamma;
|
import org.apache.commons.math.special.Gamma;
|
||||||
import org.apache.commons.math.special.Beta;
|
import org.apache.commons.math.special.Beta;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the Beta distribution.
|
* Implements the Beta distribution.
|
||||||
|
|
|
@ -20,8 +20,8 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Beta;
|
import org.apache.commons.math.special.Beta;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default implementation of {@link BinomialDistribution}.
|
* The default implementation of {@link BinomialDistribution}.
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of
|
* Default implementation of
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default implementation of {@link ExponentialDistribution}.
|
* The default implementation of {@link ExponentialDistribution}.
|
||||||
|
|
|
@ -20,8 +20,8 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Beta;
|
import org.apache.commons.math.special.Beta;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of
|
* Default implementation of
|
||||||
|
|
|
@ -20,8 +20,8 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Gamma;
|
import org.apache.commons.math.special.Gamma;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default implementation of {@link GammaDistribution}.
|
* The default implementation of {@link GammaDistribution}.
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,8 +22,8 @@ import java.io.Serializable;
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Erf;
|
import org.apache.commons.math.special.Erf;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of
|
* Default implementation of
|
||||||
|
|
|
@ -20,8 +20,8 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Beta;
|
import org.apache.commons.math.special.Beta;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,8 +20,8 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Gamma;
|
import org.apache.commons.math.special.Gamma;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,9 +20,9 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.special.Beta;
|
import org.apache.commons.math.special.Beta;
|
||||||
import org.apache.commons.math.special.Gamma;
|
import org.apache.commons.math.special.Gamma;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of
|
* Default implementation of
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of
|
* Default implementation of
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation for the {@link ZipfDistribution}.
|
* Implementation for the {@link ZipfDistribution}.
|
||||||
|
|
|
@ -19,11 +19,11 @@ package org.apache.commons.math.estimation;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.linear.InvalidMatrixException;
|
import org.apache.commons.math.linear.InvalidMatrixException;
|
||||||
import org.apache.commons.math.linear.LUDecompositionImpl;
|
import org.apache.commons.math.linear.LUDecompositionImpl;
|
||||||
import org.apache.commons.math.linear.MatrixUtils;
|
import org.apache.commons.math.linear.MatrixUtils;
|
||||||
import org.apache.commons.math.linear.RealMatrix;
|
import org.apache.commons.math.linear.RealMatrix;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for implementing estimators.
|
* Base class for implementing estimators.
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
package org.apache.commons.math.estimation;
|
package org.apache.commons.math.estimation;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class represents exceptions thrown by the estimation solvers.
|
* This class represents exceptions thrown by the estimation solvers.
|
||||||
|
|
|
@ -19,13 +19,13 @@ package org.apache.commons.math.estimation;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.linear.InvalidMatrixException;
|
import org.apache.commons.math.linear.InvalidMatrixException;
|
||||||
import org.apache.commons.math.linear.LUDecompositionImpl;
|
import org.apache.commons.math.linear.LUDecompositionImpl;
|
||||||
import org.apache.commons.math.linear.MatrixUtils;
|
import org.apache.commons.math.linear.MatrixUtils;
|
||||||
import org.apache.commons.math.linear.RealMatrix;
|
import org.apache.commons.math.linear.RealMatrix;
|
||||||
import org.apache.commons.math.linear.RealVector;
|
import org.apache.commons.math.linear.RealVector;
|
||||||
import org.apache.commons.math.linear.ArrayRealVector;
|
import org.apache.commons.math.linear.ArrayRealVector;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class implements a solver for estimation problems.
|
* This class implements a solver for estimation problems.
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.commons.math.estimation;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when two dimensions differ.
|
* Exception to be thrown when two dimensions differ.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.util;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.util;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.util;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.MissingResourceException;
|
import java.util.MissingResourceException;
|
|
@ -19,7 +19,6 @@ package org.apache.commons.math.exception;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for all preconditions violation exceptions.
|
* Base class for all preconditions violation exceptions.
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for exceptions raised by a wrong number.
|
* Base class for exceptions raised by a wrong number.
|
||||||
|
|
|
@ -18,7 +18,6 @@ package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for constructing localized messages.
|
* Class for constructing localized messages.
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when the required data is missing.
|
* Exception to be thrown when the required data is missing.
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when the argument is negative.
|
* Exception to be thrown when the argument is negative.
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when the argument is negative.
|
* Exception to be thrown when the argument is negative.
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when a number is too large.
|
* Exception to be thrown when a number is too large.
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when a number is too small.
|
* Exception to be thrown when a number is too small.
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when some argument is out of range.
|
* Exception to be thrown when some argument is out of range.
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
import org.apache.commons.math.util.Localizable;
|
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception to be thrown when zero is provided where it is not allowed.
|
* Exception to be thrown when zero is provided where it is not allowed.
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
-->
|
-->
|
||||||
<!-- $Revision$ $Date$ -->
|
<!-- $Revision$ $Date$ -->
|
||||||
<body>
|
<body>
|
||||||
Specialized exceptions for algorithms errors.
|
Specialized exceptions for algorithms errors. The exceptions can be localized
|
||||||
|
using simple java properties.
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -24,7 +24,7 @@ import java.text.ParsePosition;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Common part shared by both {@link FractionFormat} and {@link BigFractionFormat}.
|
* Common part shared by both {@link FractionFormat} and {@link BigFractionFormat}.
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.math.BigInteger;
|
||||||
|
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,7 @@ import java.text.ParsePosition;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats a BigFraction number in proper format or improper format.
|
* Formats a BigFraction number in proper format or improper format.
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.math.BigInteger;
|
||||||
|
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.fraction;
|
package org.apache.commons.math.fraction;
|
||||||
|
|
||||||
import org.apache.commons.math.ConvergenceException;
|
import org.apache.commons.math.ConvergenceException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error thrown when a double value cannot be converted to a fraction
|
* Error thrown when a double value cannot be converted to a fraction
|
||||||
|
|
|
@ -25,7 +25,7 @@ import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.commons.math.ConvergenceException;
|
import org.apache.commons.math.ConvergenceException;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats a Fraction number in proper format or improper format. The number
|
* Formats a Fraction number in proper format or improper format. The number
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.text.NumberFormat;
|
||||||
import java.text.ParsePosition;
|
import java.text.ParsePosition;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats a BigFraction number in proper format. The number format for each of
|
* Formats a BigFraction number in proper format. The number format for each of
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.text.NumberFormat;
|
||||||
import java.text.ParsePosition;
|
import java.text.ParsePosition;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,9 +20,9 @@ import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.exception.NotPositiveException;
|
import org.apache.commons.math.exception.NotPositiveException;
|
||||||
import org.apache.commons.math.exception.NumberIsTooLargeException;
|
import org.apache.commons.math.exception.NumberIsTooLargeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Population of chromosomes represented by a {@link List}.
|
* Population of chromosomes represented by a {@link List}.
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mutation operator for {@link RandomKey}s. Changes a randomly chosen element
|
* Mutation operator for {@link RandomKey}s. Changes a randomly chosen element
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.geometry;
|
package org.apache.commons.math.geometry;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/** This class represents exceptions thrown while extractiong Cardan
|
/** This class represents exceptions thrown while extractiong Cardan
|
||||||
* or Euler angles from a rotation.
|
* or Euler angles from a rotation.
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.geometry;
|
package org.apache.commons.math.geometry;
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class represents exceptions thrown while building rotations
|
* This class represents exceptions thrown while building rotations
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.commons.math.geometry;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class implements rotations in a three-dimensional space.
|
* This class implements rotations in a three-dimensional space.
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.commons.math.geometry;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,8 +24,8 @@ import java.text.ParsePosition;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.CompositeFormat;
|
import org.apache.commons.math.util.CompositeFormat;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats a 3D vector in components list format "{x; y; z}".
|
* Formats a 3D vector in components list format "{x; y; z}".
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.Arrays;
|
||||||
import org.apache.commons.math.Field;
|
import org.apache.commons.math.Field;
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Basic implementation of {@link FieldMatrix} methods regardless of the underlying storage.
|
* Basic implementation of {@link FieldMatrix} methods regardless of the underlying storage.
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.linear;
|
package org.apache.commons.math.linear;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.analysis.BinaryFunction;
|
import org.apache.commons.math.analysis.BinaryFunction;
|
||||||
import org.apache.commons.math.analysis.ComposableFunction;
|
import org.apache.commons.math.analysis.ComposableFunction;
|
||||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class provides default basic implementations for many methods in the
|
* This class provides default basic implementations for many methods in the
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.io.Serializable;
|
||||||
import org.apache.commons.math.Field;
|
import org.apache.commons.math.Field;
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of FieldMatrix<T> using a {@link FieldElement}[][] array to store entries.
|
* Implementation of FieldMatrix<T> using a {@link FieldElement}[][] array to store entries.
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.commons.math.linear;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of RealMatrix using a double[][] array to store entries and
|
* Implementation of RealMatrix using a double[][] array to store entries and
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.Arrays;
|
||||||
import org.apache.commons.math.Field;
|
import org.apache.commons.math.Field;
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class implements the {@link FieldVector} interface with a {@link FieldElement} array.
|
* This class implements the {@link FieldVector} interface with a {@link FieldElement} array.
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.util.Arrays;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of {@link BigMatrix} using a BigDecimal[][] array to store entries
|
* Implementation of {@link BigMatrix} using a BigDecimal[][] array to store entries
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.io.Serializable;
|
||||||
import org.apache.commons.math.Field;
|
import org.apache.commons.math.Field;
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache-friendly implementation of FieldMatrix using a flat arrays to store
|
* Cache-friendly implementation of FieldMatrix using a flat arrays to store
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.io.Serializable;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache-friendly implementation of RealMatrix using a flat arrays to store
|
* Cache-friendly implementation of RealMatrix using a flat arrays to store
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.linear;
|
package org.apache.commons.math.linear;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.commons.math.linear;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.MaxIterationsExceededException;
|
import org.apache.commons.math.MaxIterationsExceededException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math.util.MathUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.lang.reflect.Array;
|
||||||
import org.apache.commons.math.Field;
|
import org.apache.commons.math.Field;
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the LUP-decomposition of a square matrix.
|
* Calculates the LUP-decomposition of a square matrix.
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
package org.apache.commons.math.linear;
|
package org.apache.commons.math.linear;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown when a system attempts an operation on a matrix, and
|
* Thrown when a system attempts an operation on a matrix, and
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.linear;
|
package org.apache.commons.math.linear;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the LUP-decomposition of a square matrix.
|
* Calculates the LUP-decomposition of a square matrix.
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
package org.apache.commons.math.linear;
|
package org.apache.commons.math.linear;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.DummyLocalizable;
|
import org.apache.commons.math.exception.DummyLocalizable;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown when an operation addresses a matrix coordinate (row, col)
|
* Thrown when an operation addresses a matrix coordinate (row, col)
|
||||||
|
|
|
@ -27,9 +27,9 @@ import java.util.Arrays;
|
||||||
import org.apache.commons.math.Field;
|
import org.apache.commons.math.Field;
|
||||||
import org.apache.commons.math.FieldElement;
|
import org.apache.commons.math.FieldElement;
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
|
import org.apache.commons.math.exception.LocalizedFormats;
|
||||||
import org.apache.commons.math.fraction.BigFraction;
|
import org.apache.commons.math.fraction.BigFraction;
|
||||||
import org.apache.commons.math.fraction.Fraction;
|
import org.apache.commons.math.fraction.Fraction;
|
||||||
import org.apache.commons.math.util.LocalizedFormats;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A collection of static methods that operate on or return matrices.
|
* A collection of static methods that operate on or return matrices.
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.commons.math.linear;
|
package org.apache.commons.math.linear;
|
||||||
|
|
||||||
import org.apache.commons.math.MathRuntimeException;
|
import org.apache.commons.math.MathRuntimeException;
|
||||||
import org.apache.commons.math.util.Localizable;
|
import org.apache.commons.math.exception.Localizable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown when a visitor encounters an error while processing a matrix entry.
|
* Thrown when a visitor encounters an error while processing a matrix entry.
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue