diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunction.java b/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunction.java index e50ef0096..e4cae996f 100644 --- a/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunction.java @@ -18,7 +18,8 @@ package org.apache.commons.math.analysis.interpolation; import org.apache.commons.math.util.LocalizedFormats; import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.MathRuntimeException; +import org.apache.commons.math.exception.NoDataException; +import org.apache.commons.math.exception.OutOfRangeException; import org.apache.commons.math.FunctionEvaluationException; import org.apache.commons.math.DimensionMismatchException; import org.apache.commons.math.analysis.BivariateRealFunction; @@ -85,8 +86,9 @@ public class BicubicSplineInterpolatingFunction * every grid point. * @throws DimensionMismatchException if the various arrays do not contain * the expected number of elements. - * @throws IllegalArgumentException if {@code x} or {@code y} are not strictly + * @throws NonMonotonousSequenceException if {@code x} or {@code y} are not strictly * increasing. + * @throws NoDataException if any of the arrays has zero length. */ public BicubicSplineInterpolatingFunction(double[] x, double[] y, @@ -99,7 +101,7 @@ public class BicubicSplineInterpolatingFunction final int yLen = y.length; if (xLen == 0 || yLen == 0 || f.length == 0 || f[0].length == 0) { - throw MathRuntimeException.createIllegalArgumentException(LocalizedFormats.NO_DATA); + throw new NoDataException(); } if (xLen != f.length) { throw new DimensionMismatchException(xLen, f.length); @@ -158,15 +160,11 @@ public class BicubicSplineInterpolatingFunction public double value(double x, double y) { final int i = searchIndex(x, xval); if (i == -1) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.OUT_OF_RANGE_SIMPLE, - x, xval[0], xval[xval.length - 1]); + throw new OutOfRangeException(x, xval[0], xval[xval.length - 1]); } final int j = searchIndex(y, yval); if (j == -1) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.OUT_OF_RANGE_SIMPLE, - y, yval[0], yval[yval.length - 1]); + throw new OutOfRangeException(y, yval[0], yval[yval.length - 1]); } final double xN = (x - xval[i]) / (xval[i + 1] - xval[i]); @@ -233,13 +231,11 @@ public class BicubicSplineInterpolatingFunction final int i = searchIndex(x, xval); if (i == -1) { - throw MathRuntimeException.createIllegalArgumentException(LocalizedFormats.OUT_OF_RANGE_SIMPLE, - x, xval[0], xval[xval.length - 1]); + throw new OutOfRangeException(x, xval[0], xval[xval.length - 1]); } final int j = searchIndex(y, yval); if (j == -1) { - throw MathRuntimeException.createIllegalArgumentException(LocalizedFormats.OUT_OF_RANGE_SIMPLE, - y, yval[0], yval[yval.length - 1]); + throw new OutOfRangeException(y, yval[0], yval[yval.length - 1]); } final double xN = (x - xval[i]) / (xval[i + 1] - xval[i]); @@ -376,12 +372,10 @@ class BicubicSplineFunction */ public double value(double x, double y) { if (x < 0 || x > 1) { - throw MathRuntimeException.createIllegalArgumentException(LocalizedFormats.OUT_OF_RANGE_SIMPLE, - x, 0, 1); + throw new OutOfRangeException(x, 0, 1); } if (y < 0 || y > 1) { - throw MathRuntimeException.createIllegalArgumentException(LocalizedFormats.OUT_OF_RANGE_SIMPLE, - y, 0, 1); + throw new OutOfRangeException(y, 0, 1); } final double x2 = x * x; diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolator.java index 5a9dad5c1..10c85e148 100644 --- a/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolator.java +++ b/src/main/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolator.java @@ -17,7 +17,7 @@ package org.apache.commons.math.analysis.interpolation; import org.apache.commons.math.DimensionMismatchException; -import org.apache.commons.math.MathRuntimeException; +import org.apache.commons.math.exception.NoDataException; import org.apache.commons.math.MathException; import org.apache.commons.math.util.LocalizedFormats; import org.apache.commons.math.util.MathUtils; @@ -40,7 +40,7 @@ public class BicubicSplineInterpolator final double[][] fval) throws MathException, IllegalArgumentException { if (xval.length == 0 || yval.length == 0 || fval.length == 0) { - throw MathRuntimeException.createIllegalArgumentException(LocalizedFormats.NO_DATA); + throw new NoDataException(); } if (xval.length != fval.length) { throw new DimensionMismatchException(xval.length, fval.length); diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java index f7b6c211c..11e21485f 100644 --- a/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java +++ b/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java @@ -16,10 +16,11 @@ */ package org.apache.commons.math.analysis.interpolation; -import org.apache.commons.math.MathRuntimeException; +import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math.exception.NumberIsTooSmallException; import org.apache.commons.math.analysis.polynomials.PolynomialFunction; import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math.util.LocalizedFormats; +import org.apache.commons.math.util.MathUtils; /** * Implements a linear function for interpolation of real univariate functions. @@ -30,28 +31,26 @@ public class LinearInterpolator implements UnivariateRealInterpolator { * @param x the arguments for the interpolation points * @param y the values for the interpolation points * @return a function which interpolates the data set - */ + * @throws DimensionMismatchException if {@code x} and {@code y} + * have different sizes. + * @throws NonMonotonousSequenceException if {@code x} is not sorted in + * strict increasing order. + * @throws NumberIsTooSmallException if the size of {@code x} is smaller + * than 2. + */ public PolynomialSplineFunction interpolate(double x[], double y[]) { if (x.length != y.length) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE, x.length, y.length); + throw new DimensionMismatchException(x.length, y.length); } if (x.length < 2) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.WRONG_NUMBER_OF_POINTS, 2, x.length); + throw new NumberIsTooSmallException(x.length, 2, true); } // Number of intervals. The number of data points is n + 1. int n = x.length - 1; - for (int i = 0; i < n; i++) { - if (x[i] >= x[i + 1]) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.NOT_STRICTLY_INCREASING_NUMBER_OF_POINTS, - i, i+1, x[i], x[i+1]); - } - } + MathUtils.checkOrder(x); // Slope of the lines between the datapoints. final double m[] = new double[n]; diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java b/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java index bf101728d..0e7d82489 100644 --- a/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; import org.apache.commons.math.DimensionMismatchException; -import org.apache.commons.math.MathRuntimeException; +import org.apache.commons.math.exception.NoDataException; import org.apache.commons.math.analysis.MultivariateRealFunction; import org.apache.commons.math.linear.ArrayRealVector; import org.apache.commons.math.linear.RealVector; @@ -142,7 +142,7 @@ public class MicrosphereInterpolatingFunction * {@code xval} (equal to {@code n}, the number of interpolation points) * do not match, or the the arrays {@code xval[0]} ... {@code xval[n]}, * have lengths different from {@code dimension}. - * @throws IllegalArgumentException if there are no data (xval null or zero length) + * @throws NoDataException if there are no data (xval null or zero length) */ public MicrosphereInterpolatingFunction(double[][] xval, double[] yval, @@ -151,7 +151,7 @@ public class MicrosphereInterpolatingFunction UnitSphereRandomVectorGenerator rand) throws DimensionMismatchException, IllegalArgumentException { if (xval.length == 0 || xval[0] == null) { - throw MathRuntimeException.createIllegalArgumentException(LocalizedFormats.NO_DATA); + throw new NoDataException(); } if (xval.length != yval.length) { diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java index d909aed87..d8872c777 100644 --- a/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java +++ b/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java @@ -17,7 +17,8 @@ package org.apache.commons.math.analysis.interpolation; import org.apache.commons.math.MathException; -import org.apache.commons.math.MathRuntimeException; +import org.apache.commons.math.exception.NotPositiveException; +import org.apache.commons.math.exception.NotStrictlyPositiveException; import org.apache.commons.math.analysis.MultivariateRealFunction; import org.apache.commons.math.random.UnitSphereRandomVectorGenerator; import org.apache.commons.math.util.LocalizedFormats; @@ -25,7 +26,7 @@ import org.apache.commons.math.util.LocalizedFormats; /** * Interpolator that implements the algorithm described in * William Dudziak's - * MS thesis + * MS thesis. * @since 2.1 * * @version $Revision$ $Date$ @@ -59,18 +60,17 @@ public class MicrosphereInterpolator * #MicrosphereInterpolator(int, int) * MicrosphereInterpolator(MicrosphereInterpolator.DEFAULT_MICROSPHERE_ELEMENTS, * MicrosphereInterpolator.DEFAULT_BRIGHTNESS_EXPONENT)}.
- * weights of the sample data */ public MicrosphereInterpolator() { this(DEFAULT_MICROSPHERE_ELEMENTS, DEFAULT_BRIGHTNESS_EXPONENT); } /** Create a microsphere interpolator. - * @param microsphereElements number of surface elements of the microsphere + * @param microsphereElements number of surface elements of the microsphere. * @param brightnessExponent exponent used in the power law that computes the - * weights of the sample data - * @throws IllegalArgumentException if {@code microsphereElements <= 0} - * or {@code brightnessExponent < 0} + * weights of the sample data. + * @throws NotPositiveException if {@code microsphereElements <= 0} + * or {@code brightnessExponent < 0}. */ public MicrosphereInterpolator(final int microsphereElements, final int brightnessExponent) { @@ -94,31 +94,26 @@ public class MicrosphereInterpolator /** * Set the brightness exponent. - * @param brightnessExponent Exponent for computing the distance dimming + * @param exponent Exponent for computing the distance dimming * factor. - * @throws IllegalArgumentException if {@code brightnessExponent < 0}. + * @throws NotPositiveException if {@code exponent < 0}. */ - public void setBrightnessExponent(final int brightnessExponent) { - if (brightnessExponent < 0) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.NEGATIVE_BRIGHTNESS_EXPONENT, - brightnessExponent); + public void setBrightnessExponent(final int exponent) { + if (exponent < 0) { + throw new NotPositiveException(exponent); } - this.brightnessExponent = brightnessExponent; + brightnessExponent = exponent; } /** * Set the number of microsphere elements. * @param elements Number of surface elements of the microsphere. - * @throws IllegalArgumentException if {@code microsphereElements <= 0}. + * @throws NotStrictlyPositiveException if {@code elements <= 0}. */ public void setMicropshereElements(final int elements) { - if (microsphereElements < 0) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.NON_POSITIVE_MICROSPHERE_ELEMENTS, - microsphereElements); + if (elements <= 0) { + throw new NotStrictlyPositiveException(elements); } - this.microsphereElements = elements; + microsphereElements = elements; } - } diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java index d90822869..288c6b9af 100644 --- a/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java +++ b/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java @@ -16,10 +16,11 @@ */ package org.apache.commons.math.analysis.interpolation; -import org.apache.commons.math.MathRuntimeException; +import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math.exception.NumberIsTooSmallException; import org.apache.commons.math.analysis.polynomials.PolynomialFunction; import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math.util.LocalizedFormats; +import org.apache.commons.math.util.MathUtils; /** * Computes a natural (also known as "free", "unclamped") cubic spline interpolation for the data set. @@ -55,28 +56,26 @@ public class SplineInterpolator implements UnivariateRealInterpolator { * @param x the arguments for the interpolation points * @param y the values for the interpolation points * @return a function which interpolates the data set + * @throws DimensionMismatchException if {@code x} and {@code y} + * have different sizes. + * @throws NonMonotonousSequenceException if {@code x} is not sorted in + * strict increasing order. + * @throws NumberIsTooSmallException if the size of {@code x} is smaller + * than 3. */ public PolynomialSplineFunction interpolate(double x[], double y[]) { if (x.length != y.length) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE, x.length, y.length); + throw new DimensionMismatchException(x.length, y.length); } if (x.length < 3) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.WRONG_NUMBER_OF_POINTS, 3, x.length); + throw new NumberIsTooSmallException(x.length, 3, true); } // Number of intervals. The number of data points is n + 1. int n = x.length - 1; - for (int i = 0; i < n; i++) { - if (x[i] >= x[i + 1]) { - throw MathRuntimeException.createIllegalArgumentException( - LocalizedFormats.NOT_STRICTLY_INCREASING_NUMBER_OF_POINTS, - i, i+1, x[i], x[i+1]); - } - } + MathUtils.checkOrder(x); // Differences between knot points double h[] = new double[n]; diff --git a/src/main/java/org/apache/commons/math/exception/NotPositiveException.java b/src/main/java/org/apache/commons/math/exception/NotPositiveException.java index 251381494..bf24ebdea 100644 --- a/src/main/java/org/apache/commons/math/exception/NotPositiveException.java +++ b/src/main/java/org/apache/commons/math/exception/NotPositiveException.java @@ -24,13 +24,13 @@ import org.apache.commons.math.util.LocalizedFormats; * @since 2.2 * @version $Revision$ $Date$ */ -public class NotPositiveException extends MathIllegalNumberException { +public class NotPositiveException extends NumberIsTooSmallException { /** * Construct the exception. * * @param value Argument. */ public NotPositiveException(Number value) { - super(LocalizedFormats.NOT_POSITIVE, value); + super(value, 0, true); } } diff --git a/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java b/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java index b2f422904..3b5af3194 100644 --- a/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java +++ b/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java @@ -24,13 +24,13 @@ import org.apache.commons.math.util.LocalizedFormats; * @since 2.2 * @version $Revision$ $Date$ */ -public class NotStrictlyPositiveException extends MathIllegalNumberException { +public class NotStrictlyPositiveException extends NumberIsTooSmallException { /** * Construct the exception. * * @param value Argument. */ public NotStrictlyPositiveException(Number value) { - super(LocalizedFormats.NOT_STRICTLY_POSITIVE, value); + super(value, 0, false); } } diff --git a/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java b/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java new file mode 100644 index 000000000..e631a16c3 --- /dev/null +++ b/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.math.exception; + +import org.apache.commons.math.util.LocalizedFormats; + +/** + * Exception to be thrown when a number is too large. + * + * @since 2.2 + * @version $Revision$ $Date$ + */ +public class NumberIsTooLargeException extends MathIllegalNumberException { + /** + * Higher bound. + */ + private final Number max; + /** + * Whether the maximum is included in the allowed range. + */ + private final boolean boundIsAllowed; + + /** + * Construct the exception. + * + * @param wrong Value that is larger than the maximum. + * @param max maximum. + */ + public NumberIsTooLargeException(Number wrong, + Number max, + boolean boundIsAllowed) { + super((boundIsAllowed ? + LocalizedFormats.NUMBER_TOO_LARGE : + LocalizedFormats.NUMBER_TOO_LARGE_BOUND_EXCLUDED), + wrong, max); + + this.max = max; + this.boundIsAllowed = boundIsAllowed; + } + + /** + * @return {@code true} if the maximum is included in the allowed range. + **/ + public boolean getBoundIsAllowed() { + return boundIsAllowed; + } + + /** + * @return the maximum. + **/ + public Number getMax() { + return max; + } +} diff --git a/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java b/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java new file mode 100644 index 000000000..0a9fdc928 --- /dev/null +++ b/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.math.exception; + +import org.apache.commons.math.util.LocalizedFormats; + +/** + * Exception to be thrown when a number is too small. + * + * @since 2.2 + * @version $Revision$ $Date$ + */ +public class NumberIsTooSmallException extends MathIllegalNumberException { + /** + * Higher bound. + */ + private final Number min; + /** + * Whether the maximum is included in the allowed range. + */ + private final boolean boundIsAllowed; + + /** + * Construct the exception. + * + * @param wrong Value that is smaller than the minimum. + * @param min minimum. + */ + public NumberIsTooSmallException(Number wrong, + Number min, + boolean boundIsAllowed) { + super((boundIsAllowed ? + LocalizedFormats.NUMBER_TOO_SMALL : + LocalizedFormats.NUMBER_TOO_SMALL_BOUND_EXCLUDED), + wrong, min); + + this.min = min; + this.boundIsAllowed = boundIsAllowed; + } + + /** + * @return {@code true} if the minimum is included in the allowed range. + **/ + public boolean getBoundIsAllowed() { + return boundIsAllowed; + } + + /** + * @return the minimum. + **/ + public Number getMin() { + return min; + } +} diff --git a/src/main/java/org/apache/commons/math/util/LocalizedFormats.java b/src/main/java/org/apache/commons/math/util/LocalizedFormats.java index 2334d40c3..c3bd9e50b 100644 --- a/src/main/java/org/apache/commons/math/util/LocalizedFormats.java +++ b/src/main/java/org/apache/commons/math/util/LocalizedFormats.java @@ -166,8 +166,6 @@ public enum LocalizedFormats implements Localizable { NOT_INCREASING_NUMBER_OF_POINTS("points {0} and {1} are not increasing ({2} > {3})"), NOT_INCREASING_SEQUENCE("points {3} and {2} are not increasing ({1} > {0})"), /* keep */ NOT_MULTIPLICATION_COMPATIBLE_MATRICES("{0}x{1} and {2}x{3} matrices are not multiplication compatible"), - NOT_STRICTLY_POSITIVE("{0} is not strictly positive"), /* keep */ - NOT_POSITIVE("{0} is not positive"), /* keep */ NOT_POSITIVE_ALPHA("alpha must be positive ({0})"), NOT_POSITIVE_BETA("beta must be positive ({0})"), NOT_POSITIVE_COLUMNDIMENSION("invalid column dimension: {0} (must be positive)"), @@ -219,6 +217,10 @@ public enum LocalizedFormats implements Localizable { NULL_OBJECT_TRANSFORMATION("Conversion Exception in Transformation, Object is null"), NULL_REAL_FORMAT("null real format"), NULL_WHOLE_FORMAT("whole format can not be null"), + NUMBER_TOO_LARGE("{0} is larger than the maximum ({1})"), /* keep */ + NUMBER_TOO_SMALL("{0} is smaller than the minimum ({1})"), /* keep */ + NUMBER_TOO_LARGE_BOUND_EXCLUDED("{0} is larger than, or equal to, the maximum ({1})"), /* keep */ + NUMBER_TOO_SMALL_BOUND_EXCLUDED("{0} is smaller than, or equal to, the minimum ({1})"), /* keep */ NUMBER_OF_SUCCESS_LARGER_THAN_POPULATION_SIZE("number of successes ({0}) must be less than or equal to population size ({1})"), NUMERATOR_OVERFLOW_AFTER_MULTIPLY("overflow, numerator too large after multiply: {0}"), N_POINTS_GAUSS_LEGENDRE_INTEGRATOR_NOT_SUPPORTED("{0} points Legendre-Gauss integrator not supported, number of points must be in the {1}-{2} range"), diff --git a/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties b/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties index 8f419f35f..f40a507e9 100644 --- a/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties +++ b/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties @@ -138,8 +138,6 @@ NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION = une partiction spline n\u00e9cessite au NOT_INCREASING_NUMBER_OF_POINTS = les points {0} et {1} ne sont pas croissants ({2} > {3}) NOT_INCREASING_SEQUENCE = les points {3} et {2} ne sont pas croissants ({1} > {0}) NOT_MULTIPLICATION_COMPATIBLE_MATRICES = les dimensions {0}x{1} et {2}x{3} sont incompatibles pour la multiplication matricielle -NOT_STRICTLY_POSITIVE = {0} n''est pas strictement positif -NOT_POSITIVE = {0} n''est pas positif NOT_POSITIVE_ALPHA = alpha doit \u00eatre positif ({0}) NOT_POSITIVE_BETA = beta doit \u00eatre positif ({0}) NOT_POSITIVE_COLUMNDIMENSION = nombre de colonnes invalide : {0} (doit \u00eatre positif) @@ -191,6 +189,10 @@ NULL_NUMERATOR_FORMAT = le format du num\u00e9rateur ne doit pas \u00eatre nul NULL_OBJECT_TRANSFORMATION = Exception de conversion dans une transformation, l''objet est nul NULL_REAL_FORMAT = format r\u00e9el nul NULL_WHOLE_FORMAT = le format complet ne doit pas \u00eatre nul +NUMBER_TOO_LARGE = {0} est plus grand que le maximum ({1}) +NUMBER_TOO_SMALL = {0} est plus petit que le minimum ({1}) +NUMBER_TOO_LARGE_BOUND_EXCLUDED = {0} n''est pas strictement plus grand que le maximum ({1}) +NUMBER_TOO_SMALL_BOUND_EXCLUDED = {0} n''est pas strictement plus petit que le minimum ({1}) NUMBER_OF_SUCCESS_LARGER_THAN_POPULATION_SIZE = le nombre de succ\u00e8s doit \u00eatre inf\u00e9rieur NUMERATOR_OVERFLOW_AFTER_MULTIPLY = d\u00e9passement de capacit\u00e9 pour le num\u00e9rateur apr\u00e8s multiplication : {0} N_POINTS_GAUSS_LEGENDRE_INTEGRATOR_NOT_SUPPORTED = l''int\u00e9grateur de Legendre-Gauss en {0} points n''est pas disponible, le nombre de points doit \u00eatre entre {1} et {2} diff --git a/src/site/xdoc/changes.xml b/src/site/xdoc/changes.xml index 38341a3ff..441ed69f1 100644 --- a/src/site/xdoc/changes.xml +++ b/src/site/xdoc/changes.xml @@ -52,6 +52,9 @@ The