(commons-math) branch master updated: Update userguide.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new ffcdf39f8 Update userguide. ffcdf39f8 is described below commit ffcdf39f8fa7ccd19c5c21a73fccb90c753592cd Author: Gilles Sadowski AuthorDate: Fri Apr 5 13:08:03 2024 +0200 Update userguide. Some links are still broken (due to the refactoring). --- src/site/xdoc/userguide/analysis.xml | 142 +++ src/site/xdoc/userguide/distribution.xml | 4 +- src/site/xdoc/userguide/exceptions.xml | 14 +-- src/site/xdoc/userguide/filter.xml | 6 +- src/site/xdoc/userguide/fitting.xml | 26 +++--- src/site/xdoc/userguide/genetics.xml | 28 +++--- src/site/xdoc/userguide/leastsquares.xml | 52 +-- src/site/xdoc/userguide/linear.xml | 34 src/site/xdoc/userguide/ml.xml | 22 ++--- src/site/xdoc/userguide/ode.xml | 76 - src/site/xdoc/userguide/optimization.xml | 56 ++-- src/site/xdoc/userguide/overview.xml | 6 +- src/site/xdoc/userguide/random.xml | 8 +- src/site/xdoc/userguide/stat.xml | 106 +++ src/site/xdoc/userguide/utilities.xml| 16 ++-- 15 files changed, 298 insertions(+), 298 deletions(-) diff --git a/src/site/xdoc/userguide/analysis.xml b/src/site/xdoc/userguide/analysis.xml index 2def6bd0f..6bd64a27a 100644 --- a/src/site/xdoc/userguide/analysis.xml +++ b/src/site/xdoc/userguide/analysis.xml @@ -88,13 +88,13 @@ - - UnivariateSolver, - UnivariateDifferentiableSolver and + + UnivariateSolver, + UnivariateDifferentiableSolver and PolynomialSolver provide means to find roots of - univariate real-valued functions, - differentiable univariate real-valued functions, - and polynomial functions respectively. + univariate real-valued functions, + differentiable univariate real-valued functions, + and polynomial functions respectively. A root is the value where the function takes the value 0. Commons-Math includes implementations of the several root-finding algorithms: @@ -102,85 +102,85 @@ Root solvers NameFunction typeConvergenceNeeds initial bracketingBracket side selection - Bisection - univariate real-valued functions + Bisection + univariate real-valued functions linear, guaranteed yes yes - Brent-Dekker - univariate real-valued functions + Brent-Dekker + univariate real-valued functions super-linear, guaranteed yes no - bracketing nth order Brent - univariate real-valued functions + bracketing nth order Brent + univariate real-valued functions variable order, guaranteed yes yes - Illinois Method - univariate real-valued functions + Illinois Method + univariate real-valued functions super-linear, guaranteed yes yes - Laguerre's Method - polynomial functions + Laguerre's Method + polynomial functions cubic for simple root, linear for multiple root yes no - Muller's Method using bracketing to deal with real-valued functions - univariate real-valued functions + Muller's Method using bracketing to deal with real-valued functions + univariate real-valued functions quadratic close to roots yes no - Muller's Method using modulus to deal with real-valued functions - univariate real-valued functions + Muller's Method using modulus to deal with real-valued functions + univariate real-valued functions quadratic close to root yes no - Newton-Raphson's Method - differentiable univariate real-valued functions + Newton-Raphson's Method + differentiable univariate real-valued functions quadratic, non-guaranteed no no - Pegasus Method
(commons-math) branch master updated: MATH-1666: Hide "LineSearch".
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new aaa39b8fd MATH-1666: Hide "LineSearch". new d961ff2f4 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-math aaa39b8fd is described below commit aaa39b8fd5a2b1dbe4e883e027e932aa8703e55d Author: Gilles Sadowski AuthorDate: Wed Nov 22 02:25:27 2023 +0100 MATH-1666: Hide "LineSearch". --- .../commons/math4/legacy/optim/BaseOptimizer.java | 27 +++- .../commons/math4/legacy/optim/Tolerance.java | 53 +++ .../legacy/optim/nonlinear/scalar/LineSearch.java | 5 + .../nonlinear/scalar/LineSearchTolerance.java | 56 +++ .../nonlinear/scalar/MultivariateOptimizer.java| 164 - .../NonLinearConjugateGradientOptimizer.java | 59 +--- .../nonlinear/scalar/noderiv/PowellOptimizer.java | 35 ++--- .../MultiStartMultivariateOptimizerTest.java | 12 +- .../NonLinearConjugateGradientOptimizerTest.java | 77 +- 9 files changed, 368 insertions(+), 120 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java index 3e16d7b28..bd1f938e2 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java @@ -23,8 +23,10 @@ import org.apache.commons.math4.legacy.core.IntegerSequence; /** * Base class for implementing optimizers. * It contains the boiler-plate code for counting the number of evaluations - * of the objective function and the number of iterations of the algorithm, - * and storing the convergence checker. + * of the objective function and the number of iterations of the algorithm. + * It also stores a {@link ConvergenceChecker convergence checker}, as well + * as {@link Tolerance default tolerances} (how the checker and tolerances + * are used is determined by subclasses). * It is not a "user" class. * * @param Type of the point/value pair returned by the optimization @@ -48,6 +50,10 @@ public abstract class BaseOptimizer { private IntegerSequence.Incrementor evaluations; /** Iterations counter. */ private IntegerSequence.Incrementor iterations; +/** Relative tolerance. */ +private double relativeTolerance = 1e-6; +/** Absolute tolerance. */ +private double absoluteTolerance = 1e-6; /** * @param checker Convergence checker. @@ -69,6 +75,16 @@ public abstract class BaseOptimizer { this.maxIterations = maxIter; } +/** @return the relative tolerance. */ +protected double getRelativeTolerance() { +return relativeTolerance; +} + +/** @return the absolute tolerance. */ +protected double getAbsoluteTolerance() { +return absoluteTolerance; +} + /** * Gets the maximal number of function evaluations. * @@ -142,6 +158,7 @@ public abstract class BaseOptimizer { * {@link MaxEval} * {@link MaxIter} * {@link ConvergenceChecker} + * {@link Tolerance} * * @return a point/value pair that satisfies the convergence criteria. * @throws TooManyEvaluationsException if the maximal number of @@ -230,6 +247,12 @@ public abstract class BaseOptimizer { checker = (ConvergenceChecker) data; continue; } +if (data instanceof Tolerance) { + final Tolerance tol = (Tolerance) data; + relativeTolerance = tol.getRelativeTolerance(); + absoluteTolerance = tol.getAbsoluteTolerance(); + continue; +} } } diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/Tolerance.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/Tolerance.java new file mode 100644 index 0..de115cf28 --- /dev/null +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/Tolerance.java @@ -0,0 +1,53 @@ +/* + * 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 dist
[commons-math] branch master updated: MATH-1665: Fail "javadoc" on warnings.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 9e02432e0 MATH-1665: Fail "javadoc" on warnings. 9e02432e0 is described below commit 9e02432e06501f94690e172f3856450cd3a55a20 Author: Gilles Sadowski AuthorDate: Sat Aug 5 18:14:12 2023 +0200 MATH-1665: Fail "javadoc" on warnings. --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index e3094996f..bf32f9f94 100644 --- a/pom.xml +++ b/pom.xml @@ -366,6 +366,7 @@ org.apache.maven.plugins maven-javadoc-plugin +true
[commons-rng] branch master updated: Upgrade to CP 59.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-rng.git The following commit(s) were added to refs/heads/master by this push: new 5f54dbec Upgrade to CP 59. 5f54dbec is described below commit 5f54dbec2969cada0a5292cbd382b10ad3b1fd11 Author: Gilles Sadowski AuthorDate: Sat Jul 29 12:32:24 2023 +0200 Upgrade to CP 59. See also COMMONSSITE-166. --- commons-rng-docs/pom.xml | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-rng-docs/pom.xml b/commons-rng-docs/pom.xml index 98f7fbd4..50fe5510 100644 --- a/commons-rng-docs/pom.xml +++ b/commons-rng-docs/pom.xml @@ -32,6 +32,7 @@ Aggregator module to genenerate Apache Commons RNG documentation. +true true true diff --git a/pom.xml b/pom.xml index d320c85a..47f2c1ae 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ org.apache.commons commons-parent -58 +59 commons-rng-parent
[commons-geometry] branch master updated: Upgrade to CP 59.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-geometry.git The following commit(s) were added to refs/heads/master by this push: new 43455db9 Upgrade to CP 59. 43455db9 is described below commit 43455db922408ba930b781587490144922aa79a4 Author: Gilles Sadowski AuthorDate: Sat Jul 29 11:36:17 2023 +0200 Upgrade to CP 59. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ca63406b..78c8d532 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ org.apache.commons commons-parent -58 +59 commons-geometry-parent
[commons-math] branch master updated: Upgrade to CP 59.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 68f3d64fe Upgrade to CP 59. 68f3d64fe is described below commit 68f3d64fee929929b7f1c21a658aeb186a9cf697 Author: Gilles Sadowski AuthorDate: Sat Jul 29 11:34:34 2023 +0200 Upgrade to CP 59. See also COMMONSSITE-166. --- commons-math-docs/pom.xml | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-math-docs/pom.xml b/commons-math-docs/pom.xml index 1dfddf40d..163f6e783 100644 --- a/commons-math-docs/pom.xml +++ b/commons-math-docs/pom.xml @@ -32,6 +32,7 @@ Aggregator module to genenerate Apache Commons Math documentation. +true true true diff --git a/pom.xml b/pom.xml index d7969a7bc..e3094996f 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-parent -58 +59 commons-math-parent
[commons-numbers] branch master updated: Upgrade to CP 59.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git The following commit(s) were added to refs/heads/master by this push: new 101b5fd2 Upgrade to CP 59. 101b5fd2 is described below commit 101b5fd2c82f0c99341eaeabea07ac11b82ddc24 Author: Gilles Sadowski AuthorDate: Sat Jul 29 11:27:13 2023 +0200 Upgrade to CP 59. See also COMMONSSITE-166. --- commons-numbers-docs/pom.xml | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-numbers-docs/pom.xml b/commons-numbers-docs/pom.xml index b52fe188..620b4713 100644 --- a/commons-numbers-docs/pom.xml +++ b/commons-numbers-docs/pom.xml @@ -32,6 +32,7 @@ Aggregator module to genenerate Apache Commons Numbers documentation. +true true true diff --git a/pom.xml b/pom.xml index 83a37ba1..803a521b 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-parent -58 +59 commons-numbers-parent
[commons-statistics] branch master updated: Update to CP 59.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-statistics.git The following commit(s) were added to refs/heads/master by this push: new 7a1aacc Update to CP 59. 7a1aacc is described below commit 7a1aacc2e69a1eb8b6dcdd9d508282b508706e24 Author: Gilles Sadowski AuthorDate: Sat Jul 29 11:12:00 2023 +0200 Update to CP 59. See also COMMONSSITE-166. --- commons-statistics-docs/pom.xml | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-statistics-docs/pom.xml b/commons-statistics-docs/pom.xml index 629478a..7ed1a98 100644 --- a/commons-statistics-docs/pom.xml +++ b/commons-statistics-docs/pom.xml @@ -32,6 +32,7 @@ Aggregator module to genenerate Apache Commons Statistics documentation. +true true true diff --git a/pom.xml b/pom.xml index ff597a1..c05dd46 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-parent -58 +59 4.0.0
[commons-math] branch master updated: MATH-1658: Enable passing a "ConvergenceChecker" as "OptimizationData".
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 2fb5f6aa9 MATH-1658: Enable passing a "ConvergenceChecker" as "OptimizationData". 2fb5f6aa9 is described below commit 2fb5f6aa950cae4cca7997bfd3990e35eda4cef2 Author: Gilles Sadowski AuthorDate: Thu Jun 29 23:49:51 2023 +0200 MATH-1658: Enable passing a "ConvergenceChecker" as "OptimizationData". --- .../commons/math4/legacy/optim/BaseOptimizer.java | 8 ++- .../math4/legacy/optim/ConvergenceChecker.java | 2 +- .../math4/legacy/optim/BaseOptimizerTest.java | 77 ++ src/changes/changes.xml| 3 + 4 files changed, 88 insertions(+), 2 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java index 4ebd6fb18..3e16d7b28 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/BaseOptimizer.java @@ -39,7 +39,7 @@ public abstract class BaseOptimizer { private static final MaxIterCallback MAX_ITER_CALLBACK = new MaxIterCallback(); /** Convergence checker. */ -private final ConvergenceChecker checker; +private ConvergenceChecker checker; /** Maximum number of evaluations. */ private int maxEvaluations; /** Maximum number of iterations. */ @@ -141,6 +141,7 @@ public abstract class BaseOptimizer { * * {@link MaxEval} * {@link MaxIter} + * {@link ConvergenceChecker} * * @return a point/value pair that satisfies the convergence criteria. * @throws TooManyEvaluationsException if the maximal number of @@ -210,6 +211,7 @@ public abstract class BaseOptimizer { * * {@link MaxEval} * {@link MaxIter} + * {@link ConvergenceChecker} * */ protected void parseOptimizationData(OptimizationData... optData) { @@ -224,6 +226,10 @@ public abstract class BaseOptimizer { maxIterations = ((MaxIter) data).getMaxIter(); continue; } +if (data instanceof ConvergenceChecker) { +checker = (ConvergenceChecker) data; +continue; +} } } diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/ConvergenceChecker.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/ConvergenceChecker.java index 63f7cca2a..221af27fc 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/ConvergenceChecker.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/ConvergenceChecker.java @@ -42,7 +42,7 @@ package org.apache.commons.math4.legacy.optim; * * @since 3.0 */ -public interface ConvergenceChecker { +public interface ConvergenceChecker extends OptimizationData { /** * Check if the optimization algorithm has converged. * diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/BaseOptimizerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/BaseOptimizerTest.java new file mode 100644 index 0..69d4ac812 --- /dev/null +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/BaseOptimizerTest.java @@ -0,0 +1,77 @@ +/* + * 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.math4.legacy.optim; + +import org.junit.Test; +import org.junit.Assert; + +/** + * Tests for {@link BaseOptimizer}. + */ +public class BaseOptimizerTest { +@Test +public void testDefault() { +final DummyOptimizer dummy = new DummyOptimizer(null); + +final Object result = dummy.optimize(); + +// No default checker. +Assert.assertEquals(null,
[commons-math] branch master updated: Upgrade to CP 57.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new cae501c1f Upgrade to CP 57. cae501c1f is described below commit cae501c1f0dd29dd0c10d95542532ae1cff1a14b Author: Gilles Sadowski AuthorDate: Fri Apr 28 02:49:10 2023 +0200 Upgrade to CP 57. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2aaf2235a..f17036450 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-parent -56 +57 commons-math-parent
[commons-math] branch master updated: MATH-1659: Reduce verbosity of "surefire" plugin.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new ece74cff7 MATH-1659: Reduce verbosity of "surefire" plugin. ece74cff7 is described below commit ece74cff78ae7858827f1913bb63854601d88c06 Author: Gilles Sadowski AuthorDate: Wed Apr 5 20:04:29 2023 +0200 MATH-1659: Reduce verbosity of "surefire" plugin. --- commons-math-legacy/pom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml index a3404894f..c0c4acdfb 100644 --- a/commons-math-legacy/pom.xml +++ b/commons-math-legacy/pom.xml @@ -150,7 +150,7 @@ default-test -**/SimplexOptimizerTest +**/SimplexOptimizer*Test @@ -163,8 +163,9 @@ 14 + false -**/SimplexOptimizerTest +**/SimplexOptimizer*Test
[commons-math] branch master updated: MATH-1657: Provide (protected) accessor to the objective function.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 56844842a MATH-1657: Provide (protected) accessor to the objective function. 56844842a is described below commit 56844842a86612c0fadd2e3ac6fc57f21e6747ae Author: Gilles Sadowski AuthorDate: Wed Apr 5 16:41:24 2023 +0200 MATH-1657: Provide (protected) accessor to the objective function. Deprecated method "computeObjectiveValue" (equivalent functionality). Thanks to François Laferrière for the suggestion. --- .../legacy/optim/nonlinear/scalar/LineSearch.java | 10 ++ .../nonlinear/scalar/MultivariateOptimizer.java | 21 +++-- .../NonLinearConjugateGradientOptimizer.java| 4 +++- .../nonlinear/scalar/noderiv/BOBYQAOptimizer.java | 5 +++-- .../nonlinear/scalar/noderiv/CMAESOptimizer.java| 10 ++ .../nonlinear/scalar/noderiv/PowellOptimizer.java | 6 -- .../nonlinear/scalar/noderiv/SimplexOptimizer.java | 4 +--- .../legacy/optim/univariate/BrentOptimizer.java | 6 -- .../optim/univariate/UnivariateOptimizer.java | 21 +++-- src/changes/changes.xml | 4 10 files changed, 69 insertions(+), 22 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/LineSearch.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/LineSearch.java index 1dab36529..6e674c364 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/LineSearch.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/LineSearch.java @@ -17,6 +17,7 @@ package org.apache.commons.math4.legacy.optim.nonlinear.scalar; import org.apache.commons.math4.legacy.analysis.UnivariateFunction; +import org.apache.commons.math4.legacy.analysis.MultivariateFunction; import org.apache.commons.math4.legacy.optim.MaxEval; import org.apache.commons.math4.legacy.optim.univariate.BracketFinder; import org.apache.commons.math4.legacy.optim.univariate.BrentOptimizer; @@ -73,9 +74,9 @@ public class LineSearch { * * @param optimizer Optimizer on behalf of which the line search * be performed. - * Its {@link MultivariateOptimizer#computeObjectiveValue(double[]) - * computeObjectiveValue} method will be called by the - * {@link #search(double[],double[]) search} method. + * Its {@link MultivariateOptimizer#getObjectiveFunction() objective + * function} will be called by the {@link #search(double[],double[]) + * search} method. * @param relativeTolerance Search will stop when the function relative * difference between successive iterations is below this value. * @param absoluteTolerance Search will stop when the function absolute @@ -111,6 +112,7 @@ public class LineSearch { public UnivariatePointValuePair search(final double[] startPoint, final double[] direction) { final int n = startPoint.length; +final MultivariateFunction func = mainOptimizer.getObjectiveFunction(); final UnivariateFunction f = new UnivariateFunction() { /** {@inheritDoc} */ @Override @@ -119,7 +121,7 @@ public class LineSearch { for (int i = 0; i < n; i++) { x[i] = startPoint[i] + alpha * direction[i]; } -return mainOptimizer.computeObjectiveValue(x); +return func.value(x); } }; diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateOptimizer.java index c36e95e16..2cd72d83b 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateOptimizer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateOptimizer.java @@ -85,7 +85,14 @@ public abstract class MultivariateOptimizer continue; } if (data instanceof ObjectiveFunction) { -function = ((ObjectiveFunction) data).getObjectiveFunction(); +final MultivariateFunction delegate = ((ObjectiveFunction) data).getObjectiveFunction(); +function = new MultivariateFunction() { +@Override +public double value(double[] point) { +incrementEvaluationCount(); +return delegat
[commons-math] 02/04: MATH-1589: Remove spurious "throws" clause.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 6c493a4f20e5ac3bd04d35c1042154e3e9da6392 Author: Gilles Sadowski AuthorDate: Mon Mar 6 02:30:45 2023 +0100 MATH-1589: Remove spurious "throws" clause. --- .../math4/legacy/linear/Array2DRowRealMatrix.java | 75 +++--- 1 file changed, 24 insertions(+), 51 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java index bd01de8cc..69992adad 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java @@ -22,10 +22,7 @@ import java.io.Serializable; import org.apache.commons.math4.legacy.exception.DimensionMismatchException; import org.apache.commons.math4.legacy.exception.MathIllegalStateException; import org.apache.commons.math4.legacy.exception.NoDataException; -import org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException; import org.apache.commons.math4.legacy.exception.NullArgumentException; -import org.apache.commons.math4.legacy.exception.NumberIsTooSmallException; -import org.apache.commons.math4.legacy.exception.OutOfRangeException; import org.apache.commons.math4.legacy.exception.util.LocalizedFormats; /** @@ -49,12 +46,11 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ * * @param rowDimension Number of rows in the new matrix. * @param columnDimension Number of columns in the new matrix. - * @throws NotStrictlyPositiveException if the row or column dimension is - * not positive. + * @throws org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException + * if the row or column dimension is not positive. */ public Array2DRowRealMatrix(final int rowDimension, -final int columnDimension) -throws NotStrictlyPositiveException { +final int columnDimension) { super(rowDimension, columnDimension); data = new double[rowDimension][columnDimension]; } @@ -72,8 +68,7 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ * @throws NullArgumentException if {@code d} is {@code null}. * @see #Array2DRowRealMatrix(double[][], boolean) */ -public Array2DRowRealMatrix(final double[][] d) -throws DimensionMismatchException, NoDataException, NullArgumentException { +public Array2DRowRealMatrix(final double[][] d) { copyIn(d); } @@ -93,9 +88,7 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ * @throws NullArgumentException if {@code d} is {@code null}. * @see #Array2DRowRealMatrix(double[][]) */ -public Array2DRowRealMatrix(final double[][] d, final boolean copyArray) -throws DimensionMismatchException, NoDataException, -NullArgumentException { +public Array2DRowRealMatrix(final double[][] d, final boolean copyArray) { if (copyArray) { copyIn(d); } else { @@ -137,8 +130,7 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ /** {@inheritDoc} */ @Override public RealMatrix createMatrix(final int rowDimension, - final int columnDimension) -throws NotStrictlyPositiveException { + final int columnDimension) { return new Array2DRowRealMatrix(rowDimension, columnDimension); } @@ -156,8 +148,7 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ * @throws MatrixDimensionMismatchException if {@code m} is not the same * size as {@code this}. */ -public Array2DRowRealMatrix add(final Array2DRowRealMatrix m) -throws MatrixDimensionMismatchException { +public Array2DRowRealMatrix add(final Array2DRowRealMatrix m) { // Safety check. checkAdd(m); @@ -184,8 +175,7 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ * @throws MatrixDimensionMismatchException if {@code m} is not the same * size as {@code this}. */ -public Array2DRowRealMatrix subtract(final Array2DRowRealMatrix m) -throws MatrixDimensionMismatchException { +public Array2DRowRealMatrix subtract(final Array2DRowRealMatrix m) { checkAdd(m); final int rowCount= getRowDimension(); @@ -211,8 +201,7 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ * @throws DimensionMismatchException if
[commons-math] branch master updated (889d27b5d -> 62b90523c)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git from 889d27b5d codecov-commenter => notifications new 5f76f8384 MATH-1654: optimize Array2DRowRealMatrix getEntry new 6c493a4f2 MATH-1589: Remove spurious "throws" clause. new 9321062e1 Update description for next release. new 62b90523c Track changes. The 4 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../math4/legacy/linear/Array2DRowRealMatrix.java | 85 -- src/changes/changes.xml| 48 +++- 2 files changed, 79 insertions(+), 54 deletions(-)
[commons-math] 03/04: Update description for next release.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 9321062e12264f269bc205849765184285612fe3 Author: Gilles Sadowski AuthorDate: Mon Mar 6 02:42:23 2023 +0100 Update description for next release. --- src/changes/changes.xml | 45 - 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index f7f60ca7b..ce3013736 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -52,7 +52,50 @@ If the output is not quite correct, check for invisible trailing spaces! Apache Commons Math Release Notes - + + +
[commons-math] 01/04: MATH-1654: optimize Array2DRowRealMatrix getEntry
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 5f76f8384d8bb8b933ff1474109e74fc067d3b84 Author: Cyril de Catheu AuthorDate: Sat Mar 4 23:58:20 2023 +0100 MATH-1654: optimize Array2DRowRealMatrix getEntry --- .../commons/math4/legacy/linear/Array2DRowRealMatrix.java | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java index e690201b1..bd01de8cc 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java @@ -299,8 +299,14 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ @Override public double getEntry(final int row, final int column) throws OutOfRangeException { -MatrixUtils.checkMatrixIndex(this, row, column); -return data[row][column]; +try { +return data[row][column]; +} catch (IndexOutOfBoundsException e) { +// throw the exact cause of the exception +MatrixUtils.checkMatrixIndex(this, row, column); +// should never happen +throw e; +} } /** {@inheritDoc} */
[commons-math] 04/04: Track changes.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 62b90523c52bc958d9afee99dc7d57e328f7302c Author: Gilles Sadowski AuthorDate: Mon Mar 6 02:43:05 2023 +0100 Track changes. Closes #230. --- src/changes/changes.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ce3013736..54a6a0d00 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -96,6 +96,9 @@ Caveat: to support the whole codebase (it was one of the main reasons for creating more focused components). "> + +"Array2DRowRealMatrix": Performance enhancement ("getEntry"). +
[commons-math] branch master updated: Use "forEach" syntax.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new b05b58d2f Use "forEach" syntax. b05b58d2f is described below commit b05b58d2fd0225f013fa07b1444aae4752744ee4 Author: Gilles Sadowski AuthorDate: Fri Jan 6 03:49:01 2023 +0100 Use "forEach" syntax. --- .../org/apache/commons/math4/legacy/core/MathArrays.java | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java index a208686de..cd83c7f5d 100644 --- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java +++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java @@ -552,9 +552,9 @@ public final class MathArrays { * @since 3.1 */ public static void checkPositive(final double[] in) { -for (int i = 0; i < in.length; i++) { -if (in[i] <= 0) { -throw new NotStrictlyPositiveException(in[i]); +for (double x : in) { +if (x <= 0) { +throw new NotStrictlyPositiveException(x); } } } @@ -567,8 +567,8 @@ public final class MathArrays { * @since 3.4 */ public static void checkNotNaN(final double[] in) { -for (int i = 0; i < in.length; i++) { -if (Double.isNaN(in[i])) { +for (double x : in) { +if (Double.isNaN(x)) { throw new NotANumberException(); } } @@ -597,9 +597,9 @@ public final class MathArrays { * @since 3.1 */ public static void checkNonNegative(final long[] in) { -for (int i = 0; i < in.length; i++) { -if (in[i] < 0) { -throw new NotPositiveException(in[i]); +for (long i : in) { +if (i < 0) { +throw new NotPositiveException(i); } } }
[commons-math] branch master updated: Simplify.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 423b72ff8 Simplify. 423b72ff8 is described below commit 423b72ff8dffc54e4bd8e8036a24641026425f78 Author: Gilles Sadowski AuthorDate: Fri Jan 6 03:40:09 2023 +0100 Simplify. Thanks to Alex Herbert. --- .../java/org/apache/commons/math4/legacy/core/MathArrays.java | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java index 869d10ad5..a208686de 100644 --- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java +++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java @@ -581,13 +581,10 @@ public final class MathArrays { * @throws NotFiniteNumberException if any values of the array is not a * finite real number. */ -public static void checkFinite(final double[] val) -throws NotFiniteNumberException { -for (int i = 0; i < val.length; i++) { -final double x = val[i]; -if (Double.isInfinite(x) || -Double.isNaN(x)) { -throw new NotFiniteNumberException(val[i]); +public static void checkFinite(final double[] val) { +for (double x : val) { +if (!Double.isFinite(x)) { +throw new NotFiniteNumberException(x); } } }
[commons-math] branch master updated: Add "checkFinite" utility method.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 093c7ecbf Add "checkFinite" utility method. 093c7ecbf is described below commit 093c7ecbf514d5f196bcb4afd9a67932e9e28f21 Author: Gilles Sadowski AuthorDate: Thu Jan 5 19:52:17 2023 +0100 Add "checkFinite" utility method. Functionality was defined in class "MathUtils" (in v3.6.1). --- .../commons/math4/legacy/core/MathArrays.java | 19 ++ .../commons/math4/legacy/core/MathArraysTest.java | 23 ++ 2 files changed, 42 insertions(+) diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java index 7b4284b8f..869d10ad5 100644 --- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java +++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java @@ -34,6 +34,7 @@ import org.apache.commons.math4.legacy.exception.NotPositiveException; import org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException; import org.apache.commons.math4.legacy.exception.NullArgumentException; import org.apache.commons.math4.legacy.exception.NumberIsTooLargeException; +import org.apache.commons.math4.legacy.exception.NotFiniteNumberException; import org.apache.commons.math4.legacy.exception.util.LocalizedFormats; import org.apache.commons.math4.core.jdkmath.JdkMath; @@ -573,6 +574,24 @@ public final class MathArrays { } } +/** + * Check that all the elements are real numbers. + * + * @param val Arguments. + * @throws NotFiniteNumberException if any values of the array is not a + * finite real number. + */ +public static void checkFinite(final double[] val) +throws NotFiniteNumberException { +for (int i = 0; i < val.length; i++) { +final double x = val[i]; +if (Double.isInfinite(x) || +Double.isNaN(x)) { +throw new NotFiniteNumberException(val[i]); +} +} +} + /** * Check that all entries of the input array are = 0. * diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java index 54677765b..99f09ff02 100644 --- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java +++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java @@ -31,6 +31,7 @@ import org.apache.commons.math4.legacy.exception.NotANumberException; import org.apache.commons.math4.legacy.exception.NotPositiveException; import org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException; import org.apache.commons.math4.legacy.exception.NullArgumentException; +import org.apache.commons.math4.legacy.exception.NotFiniteNumberException; import org.apache.commons.math4.core.jdkmath.JdkMath; /** @@ -757,4 +758,26 @@ public class MathArraysTest { public void testUniqueNullArgument() { MathArrays.unique(null); } + +@Test +public void testCheckFinite() { +try { +MathArrays.checkFinite(new double[] {0, -1, Double.POSITIVE_INFINITY, -2, 3}); +Assert.fail("an exception should have been thrown"); +} catch (NotFiniteNumberException e) { +// Expected +} +try { +MathArrays.checkFinite(new double[] {1, Double.NEGATIVE_INFINITY, -2, 3}); +Assert.fail("an exception should have been thrown"); +} catch (NotFiniteNumberException e) { +// Expected +} +try { +MathArrays.checkFinite(new double[] {4, 3, -1, Double.NaN, -2, 1}); +Assert.fail("an exception should have been thrown"); +} catch (NotFiniteNumberException e) { +// Expected +} +} }
[commons-math] branch master updated: Upgrade to CP 56.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 90d2d4edd Upgrade to CP 56. 90d2d4edd is described below commit 90d2d4edde4e01414f51594e0acff6d9e13ddecc Author: Gilles Sadowski AuthorDate: Tue Jan 3 22:08:56 2023 +0100 Upgrade to CP 56. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 931ea2835..2aaf2235a 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-parent -55 +56 commons-math-parent
[commons-math] branch master updated: Javadoc.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 585b04c22 Javadoc. 585b04c22 is described below commit 585b04c22edee12b193fc3e5099537af4127080b Author: Gilles Sadowski AuthorDate: Mon Dec 26 03:09:37 2022 +0100 Javadoc. --- .../org/apache/commons/math4/legacy/distribution/package-info.java | 6 -- .../java/org/apache/commons/math4/legacy/special/package-info.java | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/package-info.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/package-info.java index 2c670716e..a9abd5178 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/package-info.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/package-info.java @@ -15,7 +15,9 @@ * limitations under the License. */ /** - * Implementations of common discrete and continuous distributions. - * [Mostly moved to the "Commons Statistics" project (cf. JIRA: MATH-1443).] + * Implementations of probability distributions. + * + * Many common discrete and continuous distributions are available in + * https://commons.apache.org/statistics;>Commons Statistics. */ package org.apache.commons.math4.legacy.distribution; diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/package-info.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/package-info.java index a80b8c679..f06f82aaf 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/package-info.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/package-info.java @@ -15,6 +15,8 @@ * limitations under the License. */ /** - * Implementations of special functions such as Beta and Gamma. + * Implementations of special functions. + * Note that Beta and Gamma functions are available in + * https://commons.apache.org/numbers;>Commons Numbers. */ package org.apache.commons.math4.legacy.special;
[commons-math] branch master updated: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new e22fd6d96 Update release howto. e22fd6d96 is described below commit e22fd6d9676a930aa977977aa40fa170366d2128 Author: Gilles Sadowski AuthorDate: Thu Dec 22 23:48:52 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 38 ++ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index a637329d0..1bc629bed 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -569,40 +569,30 @@ Switch back to master and merge the X.Y-release branch (24) Allow for the web site mirrors to be updated (possibly several hours); then -send (from your apache account) a release announcement to the following ML: - annou...@apache.org - d...@commons.apache.org - u...@commons.apache.org +send (from your ASF email address) a release announcement to the following +mailing lists: + annou...@apache.org, d...@commons.apache.org, u...@commons.apache.org If you don't have it setup already you can follow these instructions to send email from your apache account : -https://reference.apache.org/committer/email#sendingemailfromyourapacheorgemailaddress +https://infra.apache.org/committer-email.html You can use the following message as a template: -- -The Apache Commons Team is pleased to announce the availability of: +The ASF "Commons" team is pleased to announce the availability of + Commons Math (version 4.0-beta1) -Apache Commons Math 3.6.1 +The release notes can be reviewed at + https://www.apache.org/dist/commons/math/RELEASE-NOTES.txt -Apache Commons Math is a library of lightweight, self-contained mathematics and -statistics components addressing the most common problems not available in the -Java programming language or Commons Lang. +Distribution packages can be downloaded from + https://commons.apache.org/math/download_math.cgi -The release notes can be reviewed at: -http://www.apache.org/dist/commons/math/RELEASE-NOTES.txt +When downloading, please verify signatures using + https://downloads.apache.org/commons/KEYS -Distribution packages can be downloaded from: -https://commons.apache.org/proper/commons-math/download_math.cgi - -When downloading, please verify signatures using the KEYS file available at: -http://www.apache.org/dist/commons - -Maven artifacts are also available in the central Maven repository: - -http://repo1.maven.org/maven2/org/apache/commons/ - -The Apache Commons Team +Maven artifacts are also available from the Maven Central repository: + https://repo.maven.apache.org/maven2/org/apache/commons -- -
[commons-math] 09/10: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 68352e923404c8bffaccaf798970139360d4c261 Author: Gilles Sadowski AuthorDate: Thu Dec 22 10:42:17 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 42 +- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 8e645f4ee..a637329d0 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -498,8 +498,8 @@ A long-term (server-side) copy of the new release's "apidocs" is done with the following command: $ svn cp -m "Copying 4.0-beta1 apidocs to versioned directory." \ - https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math/apidocs \ - https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math/javadocs/api-4.0-beta1 + https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math/commons-math-docs/apidocs \ + https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math/javadocs/api-4.0-beta1 Wait a few minutes for the live site to fully synchronize, and then check http://commons.apache.org/proper/commons-math/ @@ -525,22 +525,38 @@ tags). (22) -Clean up files and prepare for next version (here we assume it will be 3.5): +Clean up files and prepare for next version (here we assume it will be 4.0): -edit "doap_math.rdf" to add the just released version date. + (22a) + Edit "doap_math.rdf" to add the just released version date. -edit "pom.xml" so it contains - - 3.5-SNAPSHOT + (22b) + Edit every "pom.xml" file (i.e. for each module) to contain -edit "src/changes/changes.xml" to add a new section for the next release, setting -the release date to "TBD" and the description to the empty string. +4.0-SNAPSHOT -Double-check "pom.xml" *really* has a -SNAPSHOT version and commit everything: + This can be done using maven: - $ git add doap_math.rdf pom.xml src/changes/changes.xml - $ git commit -m "preparing next version 3.5" - $ git push +$ mvn release:update-versions -DautoVersionSubmodules=true -Prelease -Pcommons-math-examples + + You will only be prompted for the desired version number. + + This may miss the dist-archive/pom.xml for all the dependencies. + This should be updated manually. + + Double-check that the "pom.xml" files *really* have a "-SNAPSHOT" suffix + in the "" property: + + $ git grep '4.0-SNAPSHOT'[new version number] + $ git grep '' + + + (22c) + Edit "src/changes/changes.xml" to add a new section for the next release, setting + the release date to "TBD" and the description to the empty string. + + (22d) + Commit everything. (23)
[commons-math] 05/10: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 35752502095985ecfeda4de15d3805eaf825 Author: Gilles Sadowski AuthorDate: Wed Dec 21 13:06:04 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 84 +++ 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 2ceed..8e645f4ee 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -429,51 +429,48 @@ After correcting the problems, you'll likely have to start again from step 3, (16) After at least 72 hours have elapsed, send a "[VOTE][RESULT]" mail to summarize the outcome of the vote. This should tally the votes cast, -and state which are binding (PMC members). The vote needs at least three +1's -from PMC members to pass. +and state which are binding (PMC members). The tally must have at least +three "+1" votes from PMC members to pass. (17) The distribution files must be moved from the development area to the release area of the Apache dist server: -$ svnmucc -U https://dist.apache.org/repos/dist \ +$ svnmucc -u "__Your_apache_login__" \ + -U https://dist.apache.org/repos/dist \ rm release/commons/math/README.html \ - mv dev/commons/math/README.html release/commons/math/README.html \ + mv dev/commons/math/4.0-beta1-RC1/README.html release/commons/math/README.html \ rm release/commons/math/RELEASE-NOTES.txt \ - mv dev/commons/math/RELEASE-NOTES.txt release/commons/math/RELEASE-NOTES.txt \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.tar.gz release/commons/math/binaries/commons-math3-3.4-bin.tar.gz \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.tar.gz.asc release/commons/math/binaries/commons-math3-3.4-bin.tar.gz.asc \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.tar.gz.md5 release/commons/math/binaries/commons-math3-3.4-bin.tar.gz.md5 \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.tar.gz.sha1 release/commons/math/binaries/commons-math3-3.4-bin.tar.gz.sha1 \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.zip release/commons/math/binaries/commons-math3-3.4-bin.zip \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.zip.asc release/commons/math/binaries/commons-math3-3.4-bin.zip.asc \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.zip.md5 release/commons/math/binaries/commons-math3-3.4-bin.zip.md5 \ - mv dev/commons/math/binaries/commons-math3-3.4-bin.zip.sha1 release/commons/math/binaries/commons-math3-3.4-bin.zip.sha1 \ - mv dev/commons/math/source/commons-math3-3.4-src.tar.gz release/commons/math/source/commons-math3-3.4-src.tar.gz \ - mv dev/commons/math/source/commons-math3-3.4-src.tar.gz.asc release/commons/math/source/commons-math3-3.4-src.tar.gz.asc \ - mv dev/commons/math/source/commons-math3-3.4-src.tar.gz.md5 release/commons/math/source/commons-math3-3.4-src.tar.gz.md5 \ - mv dev/commons/math/source/commons-math3-3.4-src.tar.gz.sha1 release/commons/math/source/commons-math3-3.4-src.tar.gz.sha1 \ - mv dev/commons/math/source/commons-math3-3.4-src.zip release/commons/math/source/commons-math3-3.4-src.zip \ - mv dev/commons/math/source/commons-math3-3.4-src.zip.asc release/commons/math/source/commons-math3-3.4-src.zip.asc \ - mv dev/commons/math/source/commons-math3-3.4-src.zip.md5 release/commons/math/source/commons-math3-3.4-src.zip.md5 \ - mv dev/commons/math/source/commons-math3-3.4-src.zip.sha1 release/commons/math/source/commons-math3-3.4-src.zip.sha1 \ - -m "Publish commons-math 3.4 Release" + mv dev/commons/math/4.0-beta1-RC1/RELEASE-NOTES.txt release/commons/math/RELEASE-NOTES.txt \ + mv dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz release/commons/math/binaries/commons-math4-4.0-beta1-bin.tar.gz \ + mv dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.asc release/commons/math/binaries/commons-math4-4.0-beta1-bin.tar.gz.asc \ + mv dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.sha512 release/commons/math/binaries/commons-math4-4.0-beta1-bin.tar.gz.sha512 \ + mv dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip release/commons/math/binaries/commons-math4-4.0-beta1-bin.zip \ + mv dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.asc release/commons/math/binaries/commons-math4-4.0-beta1-bin.zip.asc \ + mv dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.sha512 release/commons/math/binaries/commons-math4-
[commons-math] 01/10: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit ab465fd22d4f8e0bc75df16f405ccac4815f9687 Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:04:33 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 1c3d31c23..f9716155a 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -148,12 +148,18 @@ In particular: about the API docs of the new release. * Estimate a release date (taking into account the release vote delay) and insert it in the "src/changes/changes.xml" file. - * Update the "pom.xml" to contain the final version number and not a SNAPSHOT: - Assuming that the release version will be "4.0-beta1", modify the "" tag to - read: + * Update all the "pom.xml" files to contain the final version number and not + a SNAPSHOT: Assuming that the release version will be "4.0-beta1", the + "" should read: 4.0-beta1 + This can be done for all modules with command + $ mvn versions:set -DnewVersion=4.0-beta1 -DgenerateBackupPoms=false + + Note: Perform a "grep" in order to ensure that all occurences have been + updated correctly. + Modify the section of "" that also refers to version numbers. You should uncomment the "" line and indicate the appropriate numbering of the release candidate: This refers to how many @@ -275,7 +281,7 @@ in the settings.xml file. You can then run - $ mvn clean deploy -Prelease + $ mvn -Duser.name="__Your_Apache_id__" clean deploy -Prelease which will transfer the artifacts to the Nexus repository located at https://repository.apache.org/index.html#stagingRepositories
[commons-math] 03/10: Set correct version for all modules.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 81171d407101fad4c5340daf71cde8eed3cdd683 Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:25:37 2022 +0100 Set correct version for all modules. --- commons-math-core/pom.xml | 2 +- commons-math-examples/pom.xml | 2 +- commons-math-legacy-core/pom.xml | 2 +- commons-math-legacy-exception/pom.xml | 2 +- commons-math-legacy/pom.xml | 2 +- commons-math-neuralnet/pom.xml| 2 +- commons-math-transform/pom.xml| 2 +- dist-archive/pom.xml | 2 +- docs-archive/pom.xml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/commons-math-core/pom.xml b/commons-math-core/pom.xml index 7add89143..646df294c 100644 --- a/commons-math-core/pom.xml +++ b/commons-math-core/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-core diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml index c72230552..07bcaf022 100644 --- a/commons-math-examples/pom.xml +++ b/commons-math-examples/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math-examples diff --git a/commons-math-legacy-core/pom.xml b/commons-math-legacy-core/pom.xml index e6cfb4a6a..6be72e424 100644 --- a/commons-math-legacy-core/pom.xml +++ b/commons-math-legacy-core/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-legacy-core diff --git a/commons-math-legacy-exception/pom.xml b/commons-math-legacy-exception/pom.xml index 4b68915b1..462c27d92 100644 --- a/commons-math-legacy-exception/pom.xml +++ b/commons-math-legacy-exception/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-legacy-exception diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml index 25a96106b..b12f78021 100644 --- a/commons-math-legacy/pom.xml +++ b/commons-math-legacy/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-legacy diff --git a/commons-math-neuralnet/pom.xml b/commons-math-neuralnet/pom.xml index 52a78069c..527e7e42c 100644 --- a/commons-math-neuralnet/pom.xml +++ b/commons-math-neuralnet/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-neuralnet diff --git a/commons-math-transform/pom.xml b/commons-math-transform/pom.xml index 853cea535..d6a325826 100644 --- a/commons-math-transform/pom.xml +++ b/commons-math-transform/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-transform diff --git a/dist-archive/pom.xml b/dist-archive/pom.xml index dc9e431b7..65863d2de 100644 --- a/dist-archive/pom.xml +++ b/dist-archive/pom.xml @@ -25,7 +25,7 @@ under the License. org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math diff --git a/docs-archive/pom.xml b/docs-archive/pom.xml index 2773605e5..3e6c1f805 100644 --- a/docs-archive/pom.xml +++ b/docs-archive/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math-docs
[commons-math] 07/10: Remove dangling links.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit d6f3268e6a17539dd8c0c7b7fe3d0f54fec5de96 Author: Gilles Sadowski AuthorDate: Thu Dec 22 08:47:23 2022 +0100 Remove dangling links. --- src/site/site.xml | 20 1 file changed, 20 deletions(-) diff --git a/src/site/site.xml b/src/site/site.xml index be924206a..8610ccc93 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -36,26 +36,6 @@ href="http://commons.apache.org/math/javadocs/api-4.0-beta1/index.html"/> http://commons.apache.org/math/javadocs/api-3.6.1/index.html"/> - http://commons.apache.org/math/javadocs/api-3.6/index.html"/> - http://commons.apache.org/math/javadocs/api-3.5/index.html"/> - http://commons.apache.org/math/javadocs/api-3.4.1/index.html"/> - http://commons.apache.org/math/javadocs/api-3.4/index.html"/> - http://commons.apache.org/math/javadocs/api-3.3/index.html"/> - http://commons.apache.org/math/javadocs/api-3.2/index.html"/> - http://commons.apache.org/math/javadocs/api-3.1.1/index.html"/> - http://commons.apache.org/math/javadocs/api-3.1/index.html"/> - http://commons.apache.org/math/javadocs/api-3.0/index.html"/> - http://commons.apache.org/math/javadocs/api-2.2/index.html"/> http://gitbox.apache.org/repos/asf/commons-math.git"/>
[commons-math] 08/10: Reset "-SNAPSHOT" suffix in "" tag.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 8e5e8bb65b846869910ea00eac69374a8fe1a5e9 Author: Gilles Sadowski AuthorDate: Thu Dec 22 10:35:53 2022 +0100 Reset "-SNAPSHOT" suffix in "" tag. Next version is still "4.0", with "0" as minor number, because last release was "beta". --- commons-math-core/pom.xml | 6 ++ .../examples-kmeans/image/pom.xml | 4 ++-- commons-math-examples/examples-kmeans/pom.xml | 4 ++-- .../examples-sofm/chinese-rings/pom.xml| 4 ++-- commons-math-examples/examples-sofm/pom.xml| 4 ++-- commons-math-examples/examples-sofm/tsp/pom.xml| 4 ++-- commons-math-examples/pom.xml | 4 ++-- commons-math-legacy-core/pom.xml | 6 ++ commons-math-legacy-exception/pom.xml | 6 ++ commons-math-legacy/pom.xml| 6 ++ commons-math-neuralnet/pom.xml | 6 ++ commons-math-transform/pom.xml | 6 ++ dist-archive/pom.xml | 6 ++ docs-archive/pom.xml | 2 +- pom.xml| 23 +++--- src/userguide/pom.xml | 6 +++--- 16 files changed, 41 insertions(+), 56 deletions(-) diff --git a/commons-math-core/pom.xml b/commons-math-core/pom.xml index 582a2b513..7ed62949a 100644 --- a/commons-math-core/pom.xml +++ b/commons-math-core/pom.xml @@ -15,15 +15,13 @@ See the License for the specific language governing permissions and limitations under the License. --> -http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; - xmlns="http://maven.apache.org/POM/4.0.0; - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;> +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;> 4.0.0 org.apache.commons commons-math-parent -4.0-beta1 +4.0-SNAPSHOT commons-math4-core diff --git a/commons-math-examples/examples-kmeans/image/pom.xml b/commons-math-examples/examples-kmeans/image/pom.xml index 4a436e3da..cc9d0869b 100644 --- a/commons-math-examples/examples-kmeans/image/pom.xml +++ b/commons-math-examples/examples-kmeans/image/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-kmeans -4.0-beta1 +4.0-SNAPSHOT examples-kmeans-image - 4.0-beta1 + 4.0-SNAPSHOT K-Means: Image Clustering diff --git a/commons-math-examples/examples-kmeans/pom.xml b/commons-math-examples/examples-kmeans/pom.xml index 339cc0dbf..b40f5b9b5 100644 --- a/commons-math-examples/examples-kmeans/pom.xml +++ b/commons-math-examples/examples-kmeans/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-beta1 +4.0-SNAPSHOT examples-kmeans - 4.0-beta1 + 4.0-SNAPSHOT pom K-Means diff --git a/commons-math-examples/examples-sofm/chinese-rings/pom.xml b/commons-math-examples/examples-sofm/chinese-rings/pom.xml index 72ed8c1a1..d28c90ae8 100644 --- a/commons-math-examples/examples-sofm/chinese-rings/pom.xml +++ b/commons-math-examples/examples-sofm/chinese-rings/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-beta1 +4.0-SNAPSHOT examples-sofm-chinese-rings - 4.0-beta1 + 4.0-SNAPSHOT SOFM: Chinese Rings diff --git a/commons-math-examples/examples-sofm/pom.xml b/commons-math-examples/examples-sofm/pom.xml index 88a98a641..928b69841 100644 --- a/commons-math-examples/examples-sofm/pom.xml +++ b/commons-math-examples/examples-sofm/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-beta1 +4.0-SNAPSHOT examples-sofm - 4.0-beta1 + 4.0-SNAPSHOT pom SOFM diff --git a/commons-math-examples/examples-sofm/tsp/pom.xml b/commons-math-examples/examples-sofm/tsp/pom.xml index 99e3c67b2..501abc267 100644 --- a/commons-math-examples/examples-sofm/tsp/pom.xml +++ b/commons-math-examples/examples-sofm/tsp/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-beta1 +4.0-SNAPSHOT examples-sofm-tsp - 4.0-beta1 + 4.0-SNAPSHOT SOFM: Traveling Salesman Problem diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml index 07bcaf022..dd0df722a 100644 --- a/commons-math-examples/pom.xml +++ b/commons-math-examples/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-parent -4.0-beta1 +4.0-SNAPSHOT commons-math-examples - 4.0-beta1 + 4.0-
[commons-math] 04/10: Set correct versions.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 39008d47bdbaf19322c562252c3eb77f2f7ae30e Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:26:31 2022 +0100 Set correct versions. --- src/userguide/pom.xml | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/userguide/pom.xml b/src/userguide/pom.xml index 8cbe0fb93..5ed04361e 100644 --- a/src/userguide/pom.xml +++ b/src/userguide/pom.xml @@ -22,7 +22,7 @@ 4.0.0 org.apache.commons commons-math4-examples - 4.0-SNAPSHOT + 4.0-beta1 Commons Math User Guide 2003 Examples @@ -84,12 +84,12 @@ org.apache.commons commons-math4 tools - 4.0-SNAPSHOT + 4.0-beta1 org.apache.commons commons-math4 - 4.0-SNAPSHOT + 4.0-beta1 com.xeiam.xchart @@ -114,7 +114,7 @@ org.apache.commons commons-rng-client-api - 1.3 + 1.5 org.apache.commons @@ -124,22 +124,22 @@ org.apache.commons commons-geometry-euclidean - 1.0-SNAPSHOT + 1.0 org.apache.commons commons-geometry-enclosing - 1.0-SNAPSHOT + 1.0 org.apache.commons commons-geometry-hull - 1.0-SNAPSHOT + 1.0 org.apache.commons commons-statistics-distribution - 0.1-SNAPSHOT + 1.0
[commons-math] 10/10: Note to avoid cluttering the web site with transient API docs.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit e7b46da7e6d7d293edaaf10ae3b91d6be1504842 Author: Gilles Sadowski AuthorDate: Thu Dec 22 10:43:37 2022 +0100 Note to avoid cluttering the web site with transient API docs. --- src/site/site.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/site/site.xml b/src/site/site.xml index 8610ccc93..27624650b 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -32,6 +32,8 @@ http://commons.apache.org/math/download_math.cgi"/> + http://commons.apache.org/math/javadocs/api-4.0-beta1/index.html"/>
[commons-math] 06/10: Merge branch '4.0-beta1-release'
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 506d4bea15a1d8845b4ba254899d9b1bf9a5c953 Merge: 357525020 39008d47b Author: Gilles Sadowski AuthorDate: Thu Dec 22 08:28:53 2022 +0100 Merge branch '4.0-beta1-release' RELEASE-NOTES.txt | 224 ++ commons-math-core/pom.xml | 2 +- .../examples-kmeans/image/pom.xml | 4 +- commons-math-examples/examples-kmeans/pom.xml | 4 +- .../examples-sofm/chinese-rings/pom.xml| 4 +- commons-math-examples/examples-sofm/pom.xml| 4 +- commons-math-examples/examples-sofm/tsp/pom.xml| 4 +- commons-math-examples/pom.xml | 4 +- commons-math-legacy-core/pom.xml | 2 +- commons-math-legacy-exception/pom.xml | 2 +- commons-math-legacy/pom.xml| 2 +- commons-math-neuralnet/pom.xml | 2 +- commons-math-transform/pom.xml | 2 +- dist-archive/pom.xml | 2 +- docs-archive/pom.xml | 2 +- pom.xml| 4 +- src/changes/changes.xml| 2 +- src/site/site.xml | 2 + src/site/xdoc/download_math.xml| 256 ++--- src/userguide/pom.xml | 16 +- 20 files changed, 385 insertions(+), 159 deletions(-) diff --cc dist-archive/pom.xml index bea6857bc,65863d2de..c43d3b75d --- a/dist-archive/pom.xml +++ b/dist-archive/pom.xml @@@ -25,10 -25,10 +25,10 @@@ under the License org.apache.commons commons-math-parent - 4.0-SNAPSHOT + 4.0-beta1 - commons-math + commons-math4 pom Apache Commons Math (full distribution) This module creates the Apache Commons Math distribution. diff --cc src/site/site.xml index fe3167754,949876ee1..be924206a --- a/src/site/site.xml +++ b/src/site/site.xml @@@ -31,7 -31,9 +31,9 @@@ http://commons.apache.org/math/download_math.cgi"/> - + + http://commons.apache.org/math/javadocs/api-4.0-beta1/index.html"/> http://commons.apache.org/math/javadocs/api-3.6.1/index.html"/>
[commons-math] 02/10: Set correct version for all modules.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit e091216bb4a982c17494c15cc3cff1cf192a55d7 Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:12:17 2022 +0100 Set correct version for all modules. --- commons-math-examples/examples-kmeans/image/pom.xml | 4 ++-- commons-math-examples/examples-kmeans/pom.xml | 4 ++-- commons-math-examples/examples-sofm/chinese-rings/pom.xml | 4 ++-- commons-math-examples/examples-sofm/pom.xml | 4 ++-- commons-math-examples/examples-sofm/tsp/pom.xml | 4 ++-- commons-math-examples/pom.xml | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/commons-math-examples/examples-kmeans/image/pom.xml b/commons-math-examples/examples-kmeans/image/pom.xml index cc9d0869b..4a436e3da 100644 --- a/commons-math-examples/examples-kmeans/image/pom.xml +++ b/commons-math-examples/examples-kmeans/image/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-kmeans -4.0-SNAPSHOT +4.0-beta1 examples-kmeans-image - 4.0-SNAPSHOT + 4.0-beta1 K-Means: Image Clustering diff --git a/commons-math-examples/examples-kmeans/pom.xml b/commons-math-examples/examples-kmeans/pom.xml index b40f5b9b5..339cc0dbf 100644 --- a/commons-math-examples/examples-kmeans/pom.xml +++ b/commons-math-examples/examples-kmeans/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-SNAPSHOT +4.0-beta1 examples-kmeans - 4.0-SNAPSHOT + 4.0-beta1 pom K-Means diff --git a/commons-math-examples/examples-sofm/chinese-rings/pom.xml b/commons-math-examples/examples-sofm/chinese-rings/pom.xml index d28c90ae8..72ed8c1a1 100644 --- a/commons-math-examples/examples-sofm/chinese-rings/pom.xml +++ b/commons-math-examples/examples-sofm/chinese-rings/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-SNAPSHOT +4.0-beta1 examples-sofm-chinese-rings - 4.0-SNAPSHOT + 4.0-beta1 SOFM: Chinese Rings diff --git a/commons-math-examples/examples-sofm/pom.xml b/commons-math-examples/examples-sofm/pom.xml index 928b69841..88a98a641 100644 --- a/commons-math-examples/examples-sofm/pom.xml +++ b/commons-math-examples/examples-sofm/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-SNAPSHOT +4.0-beta1 examples-sofm - 4.0-SNAPSHOT + 4.0-beta1 pom SOFM diff --git a/commons-math-examples/examples-sofm/tsp/pom.xml b/commons-math-examples/examples-sofm/tsp/pom.xml index 501abc267..99e3c67b2 100644 --- a/commons-math-examples/examples-sofm/tsp/pom.xml +++ b/commons-math-examples/examples-sofm/tsp/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-SNAPSHOT +4.0-beta1 examples-sofm-tsp - 4.0-SNAPSHOT + 4.0-beta1 SOFM: Traveling Salesman Problem diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml index dd0df722a..c72230552 100644 --- a/commons-math-examples/pom.xml +++ b/commons-math-examples/pom.xml @@ -25,7 +25,7 @@ commons-math-examples - 4.0-SNAPSHOT + 4.0-beta1 pom Example applications
[commons-math] branch master updated (f985ccc4a -> e7b46da7e)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git from f985ccc4a Copy javadoc groups from report section new 357525020 Update release howto. add 11237fb40 Create release candidate. new ab465fd22 Update release howto. new e091216bb Set correct version for all modules. new 81171d407 Set correct version for all modules. new 39008d47b Set correct versions. new 506d4bea1 Merge branch '4.0-beta1-release' new d6f3268e6 Remove dangling links. new 8e5e8bb65 Reset "-SNAPSHOT" suffix in "" tag. new 68352e923 Update release howto. new e7b46da7e Note to avoid cluttering the web site with transient API docs. The 10 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: RELEASE-NOTES.txt | 224 + commons-math-core/pom.xml | 4 +- commons-math-legacy-core/pom.xml | 4 +- commons-math-legacy-exception/pom.xml | 4 +- commons-math-legacy/pom.xml | 4 +- commons-math-neuralnet/pom.xml| 4 +- commons-math-transform/pom.xml| 4 +- dist-archive/pom.xml | 4 +- doc/release/release.howto.txt | 124 +--- pom.xml | 23 ++- src/changes/changes.xml | 2 +- src/site/site.xml | 24 +--- src/site/xdoc/download_math.xml | 256 +- src/userguide/pom.xml | 10 +- 14 files changed, 454 insertions(+), 237 deletions(-) create mode 100644 RELEASE-NOTES.txt
[commons-math] annotated tag rel/commons-math-4.0-beta1 created (now 1bc9cd090)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to annotated tag rel/commons-math-4.0-beta1 in repository https://gitbox.apache.org/repos/asf/commons-math.git at 1bc9cd090 (tag) tagging 12ad3420a77611557603d1c7893d588610b2463a (commit) replaces MATH_3_4_1_RC1 by Gilles Sadowski on Wed Dec 21 13:22:46 2022 +0100 - Log - RC1 becomes v4.0-beta1 official release. -BEGIN PGP SIGNATURE- iQJEBAABCgAvFiEEs5YX4JXNdI3+UFgWcDQTAR4i1bgFAmOi+pYRHGVyYW5zQGFw YWNoZS5vcmcACgkQcDQTAR4i1bhr9g/4oW7jo/Wo/Z0RZ6m884dR5QakUgUbnCQd iYkvKzDQUYGRQNn2xR2S8fH28dPb+BNqlvCgiWlqsIjEV7o1BBs+XTP3ZnyKLGpN oQdu0Q4PY+CT/bQEdXfUnUpyQ/OsSQ1M3+ODQolW1FJ2sIiu8dXXtrMUcqloI02w cQg2l2GePT5FFchvktV+jd7kUlWNaB831qlFdtAgwUQMgBe0n9rM94oPEPMTeA4S y9q/+kaqHsILoBqJuntaxuHl0+Ftr99dxAV8Ha+AHf92pRSdSRVhwdLvEf82j1uf CnSGRAY9r997pFNfxVy7WucnZWFPZmu0p5950DcKPHey3EGCSfby7z4TqEK4em9T n1qyyEo03KH1AM/m5zQFHJ0p/D4tliuWrNJRowBHD1FJ0Wu/mW9zozyYFPvUoy5j OWmkzwBk1q4J2SOl5kGOW9O+zPcGr3/yge8nsnNLyDAZFRIMIHcUUcUAN1qbMdfE EAnfQJ1RdJ79cFyOYnqjl81VkcyZTdI7u/ACr3SU1zrXASVeepxXqyEZmnsliFpq cTCQE1LgAXp+Slq/M0060d19qg90+tcEo70Jl58kbIFJyZZlfH2GJ4E+Rkn/opE0 Q9ML9FJBX/Q9+MALwkkhQd00jJHUylv32WYQuGyxvSST1wJ7oJT6ZKr3QmydoG59 AxEwsFPalQ== =bm/S -END PGP SIGNATURE- --- No new revisions were added by this update.
svn commit: r1906114 - in /commons/cms-site/trunk: conf/component_releases.properties content/xdoc/index.xml.vm doap/doap_math.rdf
Author: erans Date: Tue Dec 20 17:07:18 2022 New Revision: 1906114 URL: http://svn.apache.org/viewvc?rev=1906114=rev Log: Commons Math v4.0-beta1 was released (from RC1) Modified: commons/cms-site/trunk/conf/component_releases.properties commons/cms-site/trunk/content/xdoc/index.xml.vm commons/cms-site/trunk/doap/doap_math.rdf Modified: commons/cms-site/trunk/conf/component_releases.properties URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/conf/component_releases.properties?rev=1906114=1906113=1906114=diff == --- commons/cms-site/trunk/conf/component_releases.properties (original) +++ commons/cms-site/trunk/conf/component_releases.properties Tue Dec 20 17:07:18 2022 @@ -56,8 +56,8 @@ langVersion=3.12.0 langReleased=2021-02-26 loggingVersion=1.2 loggingReleased=2014-07-11 -mathVersion=3.6.1 -mathReleased=2016-03-21 +mathVersion=4.0-beta1 +mathReleased=2022-12-20 netVersion=3.9.0 netReleased=2022-12-02 numbersVersion=1.1 Modified: commons/cms-site/trunk/content/xdoc/index.xml.vm URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/content/xdoc/index.xml.vm?rev=1906114=1906113=1906114=diff == --- commons/cms-site/trunk/content/xdoc/index.xml.vm (original) +++ commons/cms-site/trunk/content/xdoc/index.xml.vm Tue Dec 20 17:07:18 2022 @@ -249,8 +249,8 @@ ${loggingReleased} Math Lightweight, self-contained mathematics and statistics components. -https://search.maven.org/artifact/org.apache.commons/commons-math3/${mathVersion}/jar; rel="nofollow"> - https://img.shields.io/maven-central/v/org.apache.commons/commons-math3; style="max-width:100%;"/> +https://search.maven.org/artifact/org.apache.commons/commons-math4/${mathVersion}/jar; rel="nofollow"> + https://img.shields.io/maven-central/v/org.apache.commons/commons-math-parent; style="max-width:100%;"/> ${mathReleased} Net Collection of network utilities and protocol implementations. Modified: commons/cms-site/trunk/doap/doap_math.rdf URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/doap/doap_math.rdf?rev=1906114=1906113=1906114=diff == --- commons/cms-site/trunk/doap/doap_math.rdf (original) +++ commons/cms-site/trunk/doap/doap_math.rdf Tue Dec 20 17:07:18 2022 @@ -38,6 +38,13 @@ commons-math +2022-12-20 +4.0-beta1 + + + + +commons-math 2016-03-21 3.6.1
svn commit: r58807 - /dev/commons/math/4.0-beta1-RC1/ /dev/commons/math/4.0-beta1-RC1/binaries/ /dev/commons/math/4.0-beta1-RC1/source/ /release/commons/math/ /release/commons/math/binaries/ /release/
Author: erans Date: Mon Dec 19 13:19:27 2022 New Revision: 58807 Log: Publish Commons Math 4.0-beta1 release Added: release/commons/math/README.html - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/README.html release/commons/math/RELEASE-NOTES.txt - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/RELEASE-NOTES.txt release/commons/math/binaries/commons-math4-4.0-beta1-bin.tar.gz - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz release/commons/math/binaries/commons-math4-4.0-beta1-bin.tar.gz.asc - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.asc release/commons/math/binaries/commons-math4-4.0-beta1-bin.tar.gz.sha512 - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.sha512 release/commons/math/binaries/commons-math4-4.0-beta1-bin.zip - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip release/commons/math/binaries/commons-math4-4.0-beta1-bin.zip.asc - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.asc release/commons/math/binaries/commons-math4-4.0-beta1-bin.zip.sha512 - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.sha512 release/commons/math/source/commons-math4-4.0-beta1-src.tar.gz - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz release/commons/math/source/commons-math4-4.0-beta1-src.tar.gz.asc - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz.asc release/commons/math/source/commons-math4-4.0-beta1-src.tar.gz.sha512 - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz.sha512 release/commons/math/source/commons-math4-4.0-beta1-src.zip - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip release/commons/math/source/commons-math4-4.0-beta1-src.zip.asc - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip.asc release/commons/math/source/commons-math4-4.0-beta1-src.zip.sha512 - copied unchanged from r58806, dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip.sha512 Removed: dev/commons/math/4.0-beta1-RC1/README.html dev/commons/math/4.0-beta1-RC1/RELEASE-NOTES.txt dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.asc dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.sha512 dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.asc dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.sha512 dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz.asc dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz.sha512 dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip.asc dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip.sha512
[commons-math] branch master updated: Typo in userguide.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new f55460884 Typo in userguide. f55460884 is described below commit f554608841a95ab3f83648aff11a3040ebcd8229 Author: Gilles Sadowski AuthorDate: Mon Dec 19 00:58:55 2022 +0100 Typo in userguide. Thanks to "0xflotus". Closes #228. --- src/site/xdoc/userguide/fitting.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/xdoc/userguide/fitting.xml b/src/site/xdoc/userguide/fitting.xml index 369e38111..82eff1ea7 100644 --- a/src/site/xdoc/userguide/fitting.xml +++ b/src/site/xdoc/userguide/fitting.xml @@ -116,7 +116,7 @@ obs.add(-0.99, 2.221135431136975); obs.add(-0.98, 2.09985277659314); obs.add(-0.97, 2.0211192647627025); // ... Lots of lines omitted ... -obs.addt(0.99, -2.4345814727089854); +obs.add(0.99, -2.4345814727089854); // Instantiate a third-degree polynomial fitter. final PolynomialCurveFitter fitter = PolynomialCurveFitter.create(3);
[commons-math] 03/03: Let distribution files have the same prefix as the maven artefacts.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit e2dd8f1a0d559967a0f9a3cd538b96d66561adc6 Author: Gilles Sadowski AuthorDate: Mon Dec 19 00:49:04 2022 +0100 Let distribution files have the same prefix as the maven artefacts. --- dist-archive/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist-archive/pom.xml b/dist-archive/pom.xml index dc9e431b7..bea6857bc 100644 --- a/dist-archive/pom.xml +++ b/dist-archive/pom.xml @@ -28,7 +28,7 @@ under the License. 4.0-SNAPSHOT - commons-math + commons-math4 pom Apache Commons Math (full distribution) This module creates the Apache Commons Math distribution.
[commons-math] 01/03: Modernize logo.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 929da3e61db51682fe8a320ebe1c1f2cf5a90e56 Author: Gilles Sadowski AuthorDate: Sun Dec 18 00:43:39 2022 +0100 Modernize logo. --- src/site/resources/images/commons_math.small.png | Bin 0 -> 58623 bytes src/site/site.xml| 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/resources/images/commons_math.small.png b/src/site/resources/images/commons_math.small.png new file mode 100644 index 0..7bf06eaaa Binary files /dev/null and b/src/site/resources/images/commons_math.small.png differ diff --git a/src/site/site.xml b/src/site/site.xml index a24d28b86..3f88a9419 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -18,7 +18,7 @@ Commons Math -/images/math.gif + https://commons.apache.org/proper/commons-math/images/commons_math.small.png /index.html
[commons-math] 02/03: Use full URL.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 48c520d9ff0b835f13f89c2f3af71443f9fb9faa Author: Gilles Sadowski AuthorDate: Sun Dec 18 00:45:17 2022 +0100 Use full URL. --- src/site/site.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/site.xml b/src/site/site.xml index 3f88a9419..f65930663 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -19,7 +19,7 @@ Commons Math https://commons.apache.org/proper/commons-math/images/commons_math.small.png -/index.html +https://commons.apache.org/proper/commons-math
[commons-math] branch master updated (2998aa231 -> e2dd8f1a0)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git from 2998aa231 Add ".gitattributes". new 929da3e61 Modernize logo. new 48c520d9f Use full URL. new e2dd8f1a0 Let distribution files have the same prefix as the maven artefacts. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: dist-archive/pom.xml | 2 +- src/site/resources/images/commons_math.small.png | Bin 0 -> 58623 bytes src/site/site.xml| 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/site/resources/images/commons_math.small.png
[commons-math] branch master updated: Add ".gitattributes".
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 2998aa231 Add ".gitattributes". 2998aa231 is described below commit 2998aa2312edd158b95f227d915ad400e699eba1 Author: Gilles Sadowski AuthorDate: Sat Dec 17 22:22:08 2022 +0100 Add ".gitattributes". Update contributor guidelines. --- .gitattributes | 2 ++ src/site/xdoc/developers.xml | 17 + 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0..db173deb6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* text=auto +*.patch -text diff --git a/src/site/xdoc/developers.xml b/src/site/xdoc/developers.xml index 25b4fbfff..386a71fb3 100644 --- a/src/site/xdoc/developers.xml +++ b/src/site/xdoc/developers.xml @@ -152,18 +152,11 @@ Please make sure to set your IDE or editor to use spaces instead of tabs. - Committers should configure the user.name, - user.email and core.autocrlf - git repository or global settings with git config. - The first two settings define the identity and mail of the committer. - The third setting deals with line endings to achieve consistency - in line endings. Windows users should configure this setting to - true (thus forcing git to convert CR/LF line endings - in the workspace while maintaining LF only line endings in the repository) - while OS X and Linux users should configure it to input - (thus forcing git to only strip accidental CR/LF when committing into - the repository, but never when cheking out files from the repository). See http://www.git-scm.com/book/en/Customizing-Git-Git-Configuration;>Customizing + Committers should configure the user.name and + user.email and git repository (or global) settings + with git config. + They define the identity and mail of the committer. + See http://www.git-scm.com/book/en/Customizing-Git-Git-Configuration;>Customizing Git - Git Configuration in the git book for explanation about how to configure these settings and more.
[commons-math] branch master updated: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 168cc1f0e Update release howto. 168cc1f0e is described below commit 168cc1f0e26470eeea91b92892769135a4a5d784 Author: Gilles Sadowski AuthorDate: Fri Dec 16 11:59:20 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 90 +++ 1 file changed, 57 insertions(+), 33 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index f9716155a..2ceed 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -201,7 +201,7 @@ Check you did not forget any file: $ git status Commit the changes: - $ git commit -m "Create release candidate." + $ git commit -m "Release candidate." (8) @@ -287,18 +287,12 @@ which will transfer the artifacts to the Nexus repository located at https://repository.apache.org/index.html#stagingRepositories This process transfers more files than really needed in the the "staging" (i.e. -non official) maven repository. The files expected in the repository are -commons-math3-3.4.pom, commons-math3-3.4.jar, commons-math3-3.4.javadoc, -commons-math3-3.4.sources, commons-math3-3.4.test-sources commons-math3-3.4.tests, -the associated fingerprints (.md5 and .sha1) and the signatures -.asc. Note that Nexus automatically adds "md5" and "sha1" checksums files -to the "asc" files (cryptographic signature). These fingerprints on signatures are -spurious and have to be manually removed from Nexus staging area. The process also -transfers the complete source and binaries distributions files -commons-math3-3.4.-bin.tar.gz, commons-math3-3.4.-bin.zip, commons-math3-3.4.-src.tar.gz, -commons-math3-3.4.-src.zip as well as the associated .md5 and .sha1 fingerprints and the -.asc signatures. These are not really maven artifacts but rather distribution archives, -and they belong elsewhere, so they must also been removed from the Nexus staging +non official) maven repository. +The files expected in the repository are the POM files and the JAR files. +However the process also transfers the complete source and binaries distributions +files: Those ZIP and TAR.GZ files are not really maven artifacts but rather +distribution archives, and they belong elsewhere, so they must also been removed +(together with their fingerprint and checksum files) from the Nexus staging repository. As a measure of sanity check, repository must be manually "closed" before other @@ -307,6 +301,10 @@ How to "close" the staging repository is explained at this page: http://books.sonatype.com/nexus-book/reference/staging-repositories.html#staging-sect-closing (12) +[Actions described in this section are now performed by the +"commons-release-pugin". So this section is now obsolete (and should +probably be removed.] + Upload the other distribution files to the Apache servers. The archive files have been created during the previous step. They have been put @@ -342,56 +340,82 @@ haven't setup your login on home.apache.org you will need to go to https://id.apache.org/, login and copy the contents of your ~/.ssh/id_rsa.pub file to "SSH Key (authorized_keys line)". Then run these commands: - $ mvn site + $ mvn -Prelease site site:stage $ cd target - $ mv site commons-math-3.4-RC1-site - $ lftp sftp://__your_apache_logi...@home.apache.org/ + $ mv staging commons-math-4.0-beta1-site + $ lftp sftp://__your_apache_logi...@home.apache.org lftp y...@home.apache.org:~> cd public_html - lftp y...@home.apache.org:~/public_html> mirror -R commons-math-3.4-RC1-site + lftp y...@home.apache.org:~/public_html> mirror -R commons-math-4.0-beta1-site lftp y...@home.apache.org:~/public_html> bye (14) Call to vote by sending a message to the "dev" ML with subject -"[VOTE][RC1] Release Commons Math 3.4". You can use the following example as +"[VOTE][RC1] Release Commons Math 4.0-beta1". You can use the following example as a starting point, replacing the URLs with the appropriate ones: -- -This is a [VOTE] for releasing Apache Commons Math 3.4 from release candidate 1. +This is a VOTE for releasing Apache Commons Math v4.0-beta1 (from RC1). Tag name: - MATH_3_4_RC1 (signature can be checked from git using 'git tag -v') + commons-math-4.0-beta1-RC1 + + Command for checking out the project corresponding to this tag: +$ git clone https://gitbox.apache.org/repos/asf/commons-math.git --branch commons-math-4.0-beta1-RC1 + + From within the "commons-math" directory created by the above command, you + can + 1. check the tag signature wit
svn commit: r58737 - in /dev/commons/math/4.0-beta1-RC1: ./ binaries/ site/ source/
Author: erans Date: Thu Dec 15 09:01:17 2022 New Revision: 58737 Log: Staging release: commons-math, version: 4.0-beta1 Added: dev/commons/math/4.0-beta1-RC1/ dev/commons/math/4.0-beta1-RC1/HEADER.html (with props) dev/commons/math/4.0-beta1-RC1/README.html (with props) dev/commons/math/4.0-beta1-RC1/RELEASE-NOTES.txt (with props) dev/commons/math/4.0-beta1-RC1/binaries/ dev/commons/math/4.0-beta1-RC1/binaries/HEADER.html (with props) dev/commons/math/4.0-beta1-RC1/binaries/README.html (with props) dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz (with props) dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.asc dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz.sha512 dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip (with props) dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.asc dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip.sha512 dev/commons/math/4.0-beta1-RC1/signature-validator.sh (with props) dev/commons/math/4.0-beta1-RC1/site/ dev/commons/math/4.0-beta1-RC1/site/org.apache.commons_commons-math-parent-4.0-beta1.spdx.json dev/commons/math/4.0-beta1-RC1/source/ dev/commons/math/4.0-beta1-RC1/source/HEADER.html (with props) dev/commons/math/4.0-beta1-RC1/source/README.html (with props) dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz (with props) dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz.asc dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz.sha512 dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip (with props) dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip.asc dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip.sha512 Added: dev/commons/math/4.0-beta1-RC1/HEADER.html == --- dev/commons/math/4.0-beta1-RC1/HEADER.html (added) +++ dev/commons/math/4.0-beta1-RC1/HEADER.html Thu Dec 15 09:01:17 2022 @@ -0,0 +1,31 @@ + +Apache Commons Project Distributions + + +The most recent source and binary releases for the Apache Commons project are available from this +directory listing. For older releases, please use the +https://archive.apache.org/dist/commons/;>archives. + + +Important Notices + + +Download from your nearest mirror site! +PGP/GPG Signatures + + Propchange: dev/commons/math/4.0-beta1-RC1/HEADER.html -- svn:eol-style = native Added: dev/commons/math/4.0-beta1-RC1/README.html == --- dev/commons/math/4.0-beta1-RC1/README.html (added) +++ dev/commons/math/4.0-beta1-RC1/README.html Thu Dec 15 09:01:17 2022 @@ -0,0 +1,66 @@ + +Commons-MATH v4.0-beta1. + +This is the 4.0-beta1 version of commons-math. It is available in both binary and source distributions. + + +Note: +The tar files in the distribution use GNU tar extensions +and must be untarred with a GNU compatible version of tar. The version +of tar on Solaris and Mac OS X will not work with these files + +Changes + +The changes in this release are detailed in the release notes. + +Thank you for using http://commons.apache.org/proper/commons-math/commons-math/;>MATH. + +From the Apache Commons Projecthttps://commons.apache.org/;>https://commons.apache.org/ + +Download from your +http://www.apache.org/dyn/closer.cgi/commons/;>nearest mirror site! + + +Do not download from www.apache.org. Please use a mirror site +to help us save apache.org bandwidth. +http://www.apache.org/dyn/closer.cgi/commons/;>Go +here to find your nearest mirror. + + +Signatures + +Many of the files have been digitally signed using GnuPG. If so, +there will be an accompanying file.asc signature +file in the same directory as the file (binaries/ or source/). The +signing keys can be found in the distribution directory at http://www.apache.org/dist/commons/KEYS;>http://www.apache.org/dist/commons/KEYS. + +Always download the KEYS file directly from the Apache site, never from a mirror site. + + +Always test available signatures, e.g., +$ pgpk -a KEYS +$ pgpv commons-math-4.0-beta1-bin.tar.gz.asc +or, +$ pgp -ka KEYS +$ pgp commons-math-4.0-beta1-bin.tar.gz.asc +or, +$ gpg --import KEYS +$ gpg --verify commons-math-4.0-beta1-bin.tar.gz.asc + + \ No newline at end of file Propchange: dev/commons/math/4.0-beta1-RC1/README.html -- svn:eol-style = native Added: dev/commons/math/4.0-beta1-RC1/RELEASE-NOTES.txt
svn commit: r58736 - in /dev/commons/math: binaries/ source/
Author: erans Date: Thu Dec 15 09:00:51 2022 New Revision: 58736 Log: Cleaning distribution area for: commons-math Removed: dev/commons/math/binaries/ dev/commons/math/source/
[commons-math] branch master updated (f4dfc4014 -> 7e5db45bc)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git from f4dfc4014 Update release howto. add 7e5db45bc Update release howto. No new revisions were added by this update. Summary of changes: doc/release/release.howto.txt | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-)
[commons-math] 05/05: Set correct versions.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 12ad3420a77611557603d1c7893d588610b2463a Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:26:31 2022 +0100 Set correct versions. --- src/userguide/pom.xml | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/userguide/pom.xml b/src/userguide/pom.xml index 8cbe0fb93..5ed04361e 100644 --- a/src/userguide/pom.xml +++ b/src/userguide/pom.xml @@ -22,7 +22,7 @@ 4.0.0 org.apache.commons commons-math4-examples - 4.0-SNAPSHOT + 4.0-beta1 Commons Math User Guide 2003 Examples @@ -84,12 +84,12 @@ org.apache.commons commons-math4 tools - 4.0-SNAPSHOT + 4.0-beta1 org.apache.commons commons-math4 - 4.0-SNAPSHOT + 4.0-beta1 com.xeiam.xchart @@ -114,7 +114,7 @@ org.apache.commons commons-rng-client-api - 1.3 + 1.5 org.apache.commons @@ -124,22 +124,22 @@ org.apache.commons commons-geometry-euclidean - 1.0-SNAPSHOT + 1.0 org.apache.commons commons-geometry-enclosing - 1.0-SNAPSHOT + 1.0 org.apache.commons commons-geometry-hull - 1.0-SNAPSHOT + 1.0 org.apache.commons commons-statistics-distribution - 0.1-SNAPSHOT + 1.0
[commons-math] annotated tag commons-math-4.0-beta1-RC1 created (now a3c56f384)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git at a3c56f384 (tag) tagging 12ad3420a77611557603d1c7893d588610b2463a (commit) replaces MATH_3_4_1_RC1 by Gilles Sadowski on Tue Dec 13 18:33:00 2022 +0100 - Log - Commons Math v4.0-beta1 RC1 tag. -BEGIN PGP SIGNATURE- iQJFBAABCgAvFiEEs5YX4JXNdI3+UFgWcDQTAR4i1bgFAmOYt0wRHGVyYW5zQGFw YWNoZS5vcmcACgkQcDQTAR4i1bg/4A/+JeYF3YG+WKZMuuTVADSKSFNK/j5bW6PL hZb1/0e1fkh4HQsbt/NnwXK9C3TkboJM9l01OC124u7xWpStZ2r3QZW3oWruJBC/ JEpOkgZke8QqmsOoO83WsXR4/N4y4h/8vGl0OobA1OXOyS83o07pMCsuVLxGaI0Y qT0LDh4Xk6q9cJ/50i5jpHz1hOPImPJ2K7aVPUNgu55aGPIc7VwUqE4ZtK7+Zvgg WJ2+E6KOU5MSAWDytCPPG2DuKQQOzuzgzHFOzagbBgPmvjGmb9oQQLhWUEoBiIsC Y4gxTKLL8AkG6DJBA6RYfux+NpP/l9eBy2mRAYEY0GiCi7c11mdpyKjVDN8WEew2 rgcS36bIWYr/vcbneA+fGgHHHUTRNppmfNUFmxkiu/NaLJ7pFojBUrl+s47mtYTc gWfDhBljGN7GBJbUobjv5IS9n0cL3ExQpCgDnweetusHlT99SkTXM/5z88tKcISa T8xferUCls6A1MEWTX10/WTz9/9J54XDt6nb/nk+GK6Xd3x7I3kF2eef/7M9B9HO ikObjPdd0/8sjgkPgJ30yxBuxG6sKarihcEXGKGXBTsG0JYeuDsBxIckhfr+GVuB wXO5B+hOvBgvV+6kfy7QcOfVWFAD7+HAXzP9cSSnxRXF9qgERYKoea7JJdVuKyV3 REsdsZuxLOY= =eBRw -END PGP SIGNATURE- --- This annotated tag includes the following new commits: new 7e5db45bc Update release howto. new ea5df539b Create release candidate. new be38c6d08 Set correct version for all modules. new ef26b91e7 Set correct version for all modules. new 12ad3420a Set correct versions. The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[commons-math] 02/05: Create release candidate.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit ea5df539b51c46f997a1d3eec83e25dc42e353d8 Author: Gilles Sadowski AuthorDate: Tue Dec 13 01:42:40 2022 +0100 Create release candidate. --- RELEASE-NOTES.txt | 224 +++ pom.xml | 4 +- src/changes/changes.xml | 2 +- src/site/site.xml | 2 + src/site/xdoc/download_math.xml | 256 5 files changed, 357 insertions(+), 131 deletions(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt new file mode 100644 index 0..de7a722d2 --- /dev/null +++ b/RELEASE-NOTES.txt @@ -0,0 +1,224 @@ + + Apache Commons Math 4.0-beta1 RELEASE NOTES + +The Apache Commons Math team is pleased to announce the release of commons-math-parent-4.0-beta1 + +The Apache Commons Math project is a library of lightweight mathematics +and statistics components addressing common practical problems. + +This is a major release that requires source changes in applications. +Lower-level functionality has been split off to new components, often +with bug-fixes, performance enhancements and improved API: + Commons RNG, + Commons Numbers, + Commons Geometry, + Commons Statistics. +Functionality still within Commons Math has been modularized and +partly refactored. +This is a work-in-progress (help welcome). +Codes for which the refactoring has not been undertaken (or was +deemed incomplete) have been moved to 'legacy' modules. +The minimum version of the Java platform required to compile and use +Commons Math is Java 8. +Users are encouraged to upgrade to this version, and to the new +components listed above (they are now Commons Math's dependencies). +For code now located in the 'commons-math-legacy' module, upgrading +will be a matter of changing the top-level package name: +From 'org.apache.commons.math3' to 'org.apache.commons.math4.legacy'. +Code in the 'commons-math-legacy-core' module comprise classes that +moved from package 'org.apache.commons.math3' and package +'org.apache.commons.math3.util' (e.g. 'MathArrays') to package +'org.apache.commons.math4.legacy.core'. +Notes: +Class 'FastMath' was renamed 'AccurateMath' (now located in package +'org.apache.commons.math4.legacy.core.jdkmath'). +Caveat: +Although hundreds of issues have been fixed (see 'git log' and the +reports in the bug-tracking system of all the listed components), +many remain due to the lack of human resources necessary in order +to support the whole codebase (it was one of the main reasons for +creating more focused components). + +Changes in this version include: + +New features: +o MATH-1648: "BicubicInterpolator": Provide partial derivatives of interpolating functions. Thanks to Alessandro Moscatelli. +o MATH-1371: Add "ElkanKMeansPlusPlusClusterer" clustering algorithm. Thanks to Artem Barger. +o MATH-1622: Update class "SimplexOptimizer" (in package "o.a.c.m.legacy.optim.nonlinear.scalar.noderiv") +to support simulated annealing. +o MATH-1551: "Percentile": Partial support for weighted data. Thanks to Allen Yu. +o MATH-1529: "AkimaSplineInterpolator": Option to use alternative weights. +o MATH-1509: Add "MiniBatchKMeansClusterer" clustering algorithm. Thanks to Chen Tao. +o MATH-1519: Add "Calinski-Harabsz" clustering evaluator. Thanks to Chen Tao. +o MATH-1516: Interface for ranking a list of clusters. +o MATH-1477: "MillerUpdatingRegression": Fixed "ArrayIndexOutOfBounds" exception. Thanks to Chee Sing Lee. +o MATH-1459: Create a way to automatically calculate a Jacobian matrix using a differentiator. Thanks to Adrian Porter. +o MATH-1426: "DescriptiveStatistics": allow "Double[]" as initializer. Thanks to Karl Richter. +o MATH-1383: Dependency toward the "Commons Rng" component. +o MATH-1015: Gauss-Laguerre quadrature. Thanks to Thomas Neidhart. +o MATH-1350: Improved code coverage (unit tests). Thanks to Rob Tompkins. +o MATH-1336: New 64-bits RNG implementations. On 64-bits systems, they are ~35% faster than +"java.util.Random" for generating "long" or "double" values. They also guarantee +much better randomness than "Random" (cf. MATH-1327). +o MATH-1335: Refactoring of uniform random number generator functionality: new API +implemented in package "o.a.c.m.rng". +o MATH-1337: Adaptor class from new API ("o.a.c.m.rng.RandomSource") to old API +("o.a.c.m.random.RandomGenerator"). +o MATH-1327: Report on performance and correctness of the new RNG implementations. +o MATH-1314:
[commons-math] 01/05: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 7e5db45bcaff33680b5dc112879b509436ddffd1 Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:04:33 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 1c3d31c23..f9716155a 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -148,12 +148,18 @@ In particular: about the API docs of the new release. * Estimate a release date (taking into account the release vote delay) and insert it in the "src/changes/changes.xml" file. - * Update the "pom.xml" to contain the final version number and not a SNAPSHOT: - Assuming that the release version will be "4.0-beta1", modify the "" tag to - read: + * Update all the "pom.xml" files to contain the final version number and not + a SNAPSHOT: Assuming that the release version will be "4.0-beta1", the + "" should read: 4.0-beta1 + This can be done for all modules with command + $ mvn versions:set -DnewVersion=4.0-beta1 -DgenerateBackupPoms=false + + Note: Perform a "grep" in order to ensure that all occurences have been + updated correctly. + Modify the section of "" that also refers to version numbers. You should uncomment the "" line and indicate the appropriate numbering of the release candidate: This refers to how many @@ -275,7 +281,7 @@ in the settings.xml file. You can then run - $ mvn clean deploy -Prelease + $ mvn -Duser.name="__Your_Apache_id__" clean deploy -Prelease which will transfer the artifacts to the Nexus repository located at https://repository.apache.org/index.html#stagingRepositories
[commons-math] 03/05: Set correct version for all modules.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit be38c6d089519c26efedf9d23f030cf7b205d2a8 Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:12:17 2022 +0100 Set correct version for all modules. --- commons-math-examples/examples-kmeans/image/pom.xml | 4 ++-- commons-math-examples/examples-kmeans/pom.xml | 4 ++-- commons-math-examples/examples-sofm/chinese-rings/pom.xml | 4 ++-- commons-math-examples/examples-sofm/pom.xml | 4 ++-- commons-math-examples/examples-sofm/tsp/pom.xml | 4 ++-- commons-math-examples/pom.xml | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/commons-math-examples/examples-kmeans/image/pom.xml b/commons-math-examples/examples-kmeans/image/pom.xml index cc9d0869b..4a436e3da 100644 --- a/commons-math-examples/examples-kmeans/image/pom.xml +++ b/commons-math-examples/examples-kmeans/image/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-kmeans -4.0-SNAPSHOT +4.0-beta1 examples-kmeans-image - 4.0-SNAPSHOT + 4.0-beta1 K-Means: Image Clustering diff --git a/commons-math-examples/examples-kmeans/pom.xml b/commons-math-examples/examples-kmeans/pom.xml index b40f5b9b5..339cc0dbf 100644 --- a/commons-math-examples/examples-kmeans/pom.xml +++ b/commons-math-examples/examples-kmeans/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-SNAPSHOT +4.0-beta1 examples-kmeans - 4.0-SNAPSHOT + 4.0-beta1 pom K-Means diff --git a/commons-math-examples/examples-sofm/chinese-rings/pom.xml b/commons-math-examples/examples-sofm/chinese-rings/pom.xml index d28c90ae8..72ed8c1a1 100644 --- a/commons-math-examples/examples-sofm/chinese-rings/pom.xml +++ b/commons-math-examples/examples-sofm/chinese-rings/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-SNAPSHOT +4.0-beta1 examples-sofm-chinese-rings - 4.0-SNAPSHOT + 4.0-beta1 SOFM: Chinese Rings diff --git a/commons-math-examples/examples-sofm/pom.xml b/commons-math-examples/examples-sofm/pom.xml index 928b69841..88a98a641 100644 --- a/commons-math-examples/examples-sofm/pom.xml +++ b/commons-math-examples/examples-sofm/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-SNAPSHOT +4.0-beta1 examples-sofm - 4.0-SNAPSHOT + 4.0-beta1 pom SOFM diff --git a/commons-math-examples/examples-sofm/tsp/pom.xml b/commons-math-examples/examples-sofm/tsp/pom.xml index 501abc267..99e3c67b2 100644 --- a/commons-math-examples/examples-sofm/tsp/pom.xml +++ b/commons-math-examples/examples-sofm/tsp/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-SNAPSHOT +4.0-beta1 examples-sofm-tsp - 4.0-SNAPSHOT + 4.0-beta1 SOFM: Traveling Salesman Problem diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml index dd0df722a..c72230552 100644 --- a/commons-math-examples/pom.xml +++ b/commons-math-examples/pom.xml @@ -25,7 +25,7 @@ commons-math-examples - 4.0-SNAPSHOT + 4.0-beta1 pom Example applications
[commons-math] 04/05: Set correct version for all modules.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit ef26b91e75d0ba49f39173bcf9009d89144f6c0e Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:25:37 2022 +0100 Set correct version for all modules. --- commons-math-core/pom.xml | 2 +- commons-math-examples/pom.xml | 2 +- commons-math-legacy-core/pom.xml | 2 +- commons-math-legacy-exception/pom.xml | 2 +- commons-math-legacy/pom.xml | 2 +- commons-math-neuralnet/pom.xml| 2 +- commons-math-transform/pom.xml| 2 +- dist-archive/pom.xml | 2 +- docs-archive/pom.xml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/commons-math-core/pom.xml b/commons-math-core/pom.xml index 7add89143..646df294c 100644 --- a/commons-math-core/pom.xml +++ b/commons-math-core/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-core diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml index c72230552..07bcaf022 100644 --- a/commons-math-examples/pom.xml +++ b/commons-math-examples/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math-examples diff --git a/commons-math-legacy-core/pom.xml b/commons-math-legacy-core/pom.xml index e6cfb4a6a..6be72e424 100644 --- a/commons-math-legacy-core/pom.xml +++ b/commons-math-legacy-core/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-legacy-core diff --git a/commons-math-legacy-exception/pom.xml b/commons-math-legacy-exception/pom.xml index 4b68915b1..462c27d92 100644 --- a/commons-math-legacy-exception/pom.xml +++ b/commons-math-legacy-exception/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-legacy-exception diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml index 25a96106b..b12f78021 100644 --- a/commons-math-legacy/pom.xml +++ b/commons-math-legacy/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-legacy diff --git a/commons-math-neuralnet/pom.xml b/commons-math-neuralnet/pom.xml index 52a78069c..527e7e42c 100644 --- a/commons-math-neuralnet/pom.xml +++ b/commons-math-neuralnet/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-neuralnet diff --git a/commons-math-transform/pom.xml b/commons-math-transform/pom.xml index 853cea535..d6a325826 100644 --- a/commons-math-transform/pom.xml +++ b/commons-math-transform/pom.xml @@ -23,7 +23,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math4-transform diff --git a/dist-archive/pom.xml b/dist-archive/pom.xml index dc9e431b7..65863d2de 100644 --- a/dist-archive/pom.xml +++ b/dist-archive/pom.xml @@ -25,7 +25,7 @@ under the License. org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math diff --git a/docs-archive/pom.xml b/docs-archive/pom.xml index 2773605e5..3e6c1f805 100644 --- a/docs-archive/pom.xml +++ b/docs-archive/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-math-parent -4.0-SNAPSHOT +4.0-beta1 commons-math-docs
[commons-math] annotated tag commons-math-4.0-beta1-RC1 deleted (was ec2f4ee84)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git *** WARNING: tag commons-math-4.0-beta1-RC1 was deleted! *** tag was ec2f4ee84 This change permanently discards the following revisions: discard c7d837a68 Set correct version for all modules. discard ce24a0712 Create release candidate. discard 27a76a9ce Update release howto.
[commons-math] 02/03: Create release candidate.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit ce24a0712b628c1ea615b18a064385e11bf4488b Author: Gilles Sadowski AuthorDate: Tue Dec 13 01:42:40 2022 +0100 Create release candidate. --- RELEASE-NOTES.txt | 224 +++ pom.xml | 4 +- src/changes/changes.xml | 2 +- src/site/site.xml | 2 + src/site/xdoc/download_math.xml | 256 5 files changed, 357 insertions(+), 131 deletions(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt new file mode 100644 index 0..de7a722d2 --- /dev/null +++ b/RELEASE-NOTES.txt @@ -0,0 +1,224 @@ + + Apache Commons Math 4.0-beta1 RELEASE NOTES + +The Apache Commons Math team is pleased to announce the release of commons-math-parent-4.0-beta1 + +The Apache Commons Math project is a library of lightweight mathematics +and statistics components addressing common practical problems. + +This is a major release that requires source changes in applications. +Lower-level functionality has been split off to new components, often +with bug-fixes, performance enhancements and improved API: + Commons RNG, + Commons Numbers, + Commons Geometry, + Commons Statistics. +Functionality still within Commons Math has been modularized and +partly refactored. +This is a work-in-progress (help welcome). +Codes for which the refactoring has not been undertaken (or was +deemed incomplete) have been moved to 'legacy' modules. +The minimum version of the Java platform required to compile and use +Commons Math is Java 8. +Users are encouraged to upgrade to this version, and to the new +components listed above (they are now Commons Math's dependencies). +For code now located in the 'commons-math-legacy' module, upgrading +will be a matter of changing the top-level package name: +From 'org.apache.commons.math3' to 'org.apache.commons.math4.legacy'. +Code in the 'commons-math-legacy-core' module comprise classes that +moved from package 'org.apache.commons.math3' and package +'org.apache.commons.math3.util' (e.g. 'MathArrays') to package +'org.apache.commons.math4.legacy.core'. +Notes: +Class 'FastMath' was renamed 'AccurateMath' (now located in package +'org.apache.commons.math4.legacy.core.jdkmath'). +Caveat: +Although hundreds of issues have been fixed (see 'git log' and the +reports in the bug-tracking system of all the listed components), +many remain due to the lack of human resources necessary in order +to support the whole codebase (it was one of the main reasons for +creating more focused components). + +Changes in this version include: + +New features: +o MATH-1648: "BicubicInterpolator": Provide partial derivatives of interpolating functions. Thanks to Alessandro Moscatelli. +o MATH-1371: Add "ElkanKMeansPlusPlusClusterer" clustering algorithm. Thanks to Artem Barger. +o MATH-1622: Update class "SimplexOptimizer" (in package "o.a.c.m.legacy.optim.nonlinear.scalar.noderiv") +to support simulated annealing. +o MATH-1551: "Percentile": Partial support for weighted data. Thanks to Allen Yu. +o MATH-1529: "AkimaSplineInterpolator": Option to use alternative weights. +o MATH-1509: Add "MiniBatchKMeansClusterer" clustering algorithm. Thanks to Chen Tao. +o MATH-1519: Add "Calinski-Harabsz" clustering evaluator. Thanks to Chen Tao. +o MATH-1516: Interface for ranking a list of clusters. +o MATH-1477: "MillerUpdatingRegression": Fixed "ArrayIndexOutOfBounds" exception. Thanks to Chee Sing Lee. +o MATH-1459: Create a way to automatically calculate a Jacobian matrix using a differentiator. Thanks to Adrian Porter. +o MATH-1426: "DescriptiveStatistics": allow "Double[]" as initializer. Thanks to Karl Richter. +o MATH-1383: Dependency toward the "Commons Rng" component. +o MATH-1015: Gauss-Laguerre quadrature. Thanks to Thomas Neidhart. +o MATH-1350: Improved code coverage (unit tests). Thanks to Rob Tompkins. +o MATH-1336: New 64-bits RNG implementations. On 64-bits systems, they are ~35% faster than +"java.util.Random" for generating "long" or "double" values. They also guarantee +much better randomness than "Random" (cf. MATH-1327). +o MATH-1335: Refactoring of uniform random number generator functionality: new API +implemented in package "o.a.c.m.rng". +o MATH-1337: Adaptor class from new API ("o.a.c.m.rng.RandomSource") to old API +("o.a.c.m.random.RandomGenerator"). +o MATH-1327: Report on performance and correctness of the new RNG implementations. +o MATH-1314:
[commons-math] 03/03: Set correct version for all modules.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit c7d837a68db38d72abc904e8588d51ecf598aa27 Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:12:17 2022 +0100 Set correct version for all modules. --- commons-math-examples/examples-kmeans/image/pom.xml | 4 ++-- commons-math-examples/examples-kmeans/pom.xml | 4 ++-- commons-math-examples/examples-sofm/chinese-rings/pom.xml | 4 ++-- commons-math-examples/examples-sofm/pom.xml | 4 ++-- commons-math-examples/examples-sofm/tsp/pom.xml | 4 ++-- commons-math-examples/pom.xml | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/commons-math-examples/examples-kmeans/image/pom.xml b/commons-math-examples/examples-kmeans/image/pom.xml index cc9d0869b..4a436e3da 100644 --- a/commons-math-examples/examples-kmeans/image/pom.xml +++ b/commons-math-examples/examples-kmeans/image/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-kmeans -4.0-SNAPSHOT +4.0-beta1 examples-kmeans-image - 4.0-SNAPSHOT + 4.0-beta1 K-Means: Image Clustering diff --git a/commons-math-examples/examples-kmeans/pom.xml b/commons-math-examples/examples-kmeans/pom.xml index b40f5b9b5..339cc0dbf 100644 --- a/commons-math-examples/examples-kmeans/pom.xml +++ b/commons-math-examples/examples-kmeans/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-SNAPSHOT +4.0-beta1 examples-kmeans - 4.0-SNAPSHOT + 4.0-beta1 pom K-Means diff --git a/commons-math-examples/examples-sofm/chinese-rings/pom.xml b/commons-math-examples/examples-sofm/chinese-rings/pom.xml index d28c90ae8..72ed8c1a1 100644 --- a/commons-math-examples/examples-sofm/chinese-rings/pom.xml +++ b/commons-math-examples/examples-sofm/chinese-rings/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-SNAPSHOT +4.0-beta1 examples-sofm-chinese-rings - 4.0-SNAPSHOT + 4.0-beta1 SOFM: Chinese Rings diff --git a/commons-math-examples/examples-sofm/pom.xml b/commons-math-examples/examples-sofm/pom.xml index 928b69841..88a98a641 100644 --- a/commons-math-examples/examples-sofm/pom.xml +++ b/commons-math-examples/examples-sofm/pom.xml @@ -21,11 +21,11 @@ org.apache.commons commons-math-examples -4.0-SNAPSHOT +4.0-beta1 examples-sofm - 4.0-SNAPSHOT + 4.0-beta1 pom SOFM diff --git a/commons-math-examples/examples-sofm/tsp/pom.xml b/commons-math-examples/examples-sofm/tsp/pom.xml index 501abc267..99e3c67b2 100644 --- a/commons-math-examples/examples-sofm/tsp/pom.xml +++ b/commons-math-examples/examples-sofm/tsp/pom.xml @@ -21,11 +21,11 @@ org.apache.commons examples-sofm -4.0-SNAPSHOT +4.0-beta1 examples-sofm-tsp - 4.0-SNAPSHOT + 4.0-beta1 SOFM: Traveling Salesman Problem diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml index dd0df722a..c72230552 100644 --- a/commons-math-examples/pom.xml +++ b/commons-math-examples/pom.xml @@ -25,7 +25,7 @@ commons-math-examples - 4.0-SNAPSHOT + 4.0-beta1 pom Example applications
[commons-math] 01/03: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 27a76a9ce839d90c2a0f0a23d744db0699b34ac9 Author: Gilles Sadowski AuthorDate: Tue Dec 13 18:04:33 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 1c3d31c23..c09644c5e 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -148,12 +148,15 @@ In particular: about the API docs of the new release. * Estimate a release date (taking into account the release vote delay) and insert it in the "src/changes/changes.xml" file. - * Update the "pom.xml" to contain the final version number and not a SNAPSHOT: - Assuming that the release version will be "4.0-beta1", modify the "" tag to - read: + * Update all the "pom.xml" files to contain the final version number and not + a SNAPSHOT: Assuming that the release version will be "4.0-beta1", the + "" should read: 4.0-beta1 + This can be done for all modules with command + $ mvn versions:set -DnewVersion=4.0-beta1 -DgenerateBackupPoms=false + Modify the section of "" that also refers to version numbers. You should uncomment the "" line and indicate the appropriate numbering of the release candidate: This refers to how many @@ -275,7 +278,7 @@ in the settings.xml file. You can then run - $ mvn clean deploy -Prelease + $ mvn -Duser.name="__Your_Apache_id__" clean deploy -Prelease which will transfer the artifacts to the Nexus repository located at https://repository.apache.org/index.html#stagingRepositories
[commons-math] annotated tag commons-math-4.0-beta1-RC1 created (now ec2f4ee84)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git at ec2f4ee84 (tag) tagging c7d837a68db38d72abc904e8588d51ecf598aa27 (commit) replaces MATH_3_4_1_RC1 by Gilles Sadowski on Tue Dec 13 18:13:29 2022 +0100 - Log - Commons Math v4.0-beta1 RC1 tag. -BEGIN PGP SIGNATURE- iQJFBAABCgAvFiEEs5YX4JXNdI3+UFgWcDQTAR4i1bgFAmOYsrkRHGVyYW5zQGFw YWNoZS5vcmcACgkQcDQTAR4i1bgLMBAAosixtvdAbct7YZxlsRRJX+UeWa+C6Z+U kyrlWGXjfXtFNyD/RZfE+ZKpG4efSAGjUE7MIlL3OpDZ9Zb/cV4ZMMqsXTPhFCTQ ci1sPC1ofnkVW9zgtkhIwUl2E8JJYNuGLFGFuuUScyNKNGxZyUsSPmLSj3pS1cFQ tQckrTZo27emQWCVXL2UDvZ1afPlTmLL+wRbXImukgmQcwBszD0wIXiJl1i59Yz5 JIx2G1RFQMt2C7kvMxLLZHCYR0h9wL9lepoWj8HkIlraEHvUjdHsuPL+5bRqqfa/ +cVfsl1IOpqJYJJy8V2WKP8j086XdkodKbi2SGX7SzMpulo+TaPwSdJc3sp6GJAk LX23WFGo/LBoeC0pmfzPR7lPZhcogWu2kKoCemP0Z19kZftwM32RMMxUp1+02/7L oOYE6G9FcXQYrkdakRyu7N7+zSDc9YRR/LAsPiRCzJXFkgPCPOeZChcarfnqPc+R 7xl2Gbbp+8z+umMdqVUp9hC6CoEKgSbMbXHzsFRpKETuWHpBGh/iQJJGIjBwwIa3 f28gYl4WUKdoCKsG+J76mz+x92REGZ3WMqgjWegZ4NWE5cSelNwjIB5e1iVj+7Ga D3Y24iDo9A+ZkKuHySh6EdoToEY7yqWegEUYdmrgVidMxyi2rRpdq5eMKstl8A1F x6yCBQbeMKs= =7yfx -END PGP SIGNATURE- --- This annotated tag includes the following new commits: new 27a76a9ce Update release howto. new ce24a0712 Create release candidate. new c7d837a68 Set correct version for all modules. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[commons-math] annotated tag commons-math-4.0-beta1-RC1 deleted (was 317a05403)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git *** WARNING: tag commons-math-4.0-beta1-RC1 was deleted! *** tag was 317a05403 This change permanently discards the following revisions: discard 1d862ec8c Create release candidate. discard 625d256f8 Update release howto. discard e887e3794 Update release howto.
[commons-math] tag list deleted (was f1ad9d1b0)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to tag list in repository https://gitbox.apache.org/repos/asf/commons-math.git *** WARNING: tag list was deleted! *** was f1ad9d1b0 Simplex search in higher-dimensional cases (unit test). The revisions that were on this tag are still contained in other references; therefore, this change does not discard any commits from the repository.
[commons-math] 02/03: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 625d256f8e5ac38cc930eac53d7534e3c82e9817 Author: Gilles Sadowski AuthorDate: Tue Dec 13 02:08:14 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 196e85ca1..08f1020b1 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -172,7 +172,7 @@ In particular: The "download" page template is located at "src/site/xdoc/download_math.xml". This file is updated automatically by running the command: - $ mvn commons:download-page + $ mvn commons-build:download-page (7)
[commons-math] tag list created (now f1ad9d1b0)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to tag list in repository https://gitbox.apache.org/repos/asf/commons-math.git at f1ad9d1b0 (commit) No new revisions were added by this update.
[commons-math] annotated tag commons-math-4.0-beta1-RC1 created (now 317a05403)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git at 317a05403 (tag) tagging 1d862ec8cca30a6b797583ef2f837e54830f658d (commit) replaces MATH_3_4_1_RC1 by Gilles Sadowski on Tue Dec 13 02:44:38 2022 +0100 - Log - Create Commons Math v4.0-beta1 RC1 tag. -BEGIN PGP SIGNATURE- iQJFBAABCgAvFiEEs5YX4JXNdI3+UFgWcDQTAR4i1bgFAmOX2QYRHGVyYW5zQGFw YWNoZS5vcmcACgkQcDQTAR4i1binMw//alQRZYir02lgBibp7gjzpYSqvSNj+ZEl lOEt0j8deFWq2N/9YhLEgELhNB1xpdq6hSF7LcNgniQPeP4aIaP4tH8eK5shgasB 50JJ3gpBTrNKRr+4hdlHQxI+vkAYQbw02xbpbVmqBOlw04DVVNXGjVKZsUgysHoQ FNG3V+h86FUcPIa0w2G6wVt2sT+JeTEF6PUid0vixkq3qNujgr97BpBIm7F3vWqm XZ0KQqFZCsuS4hBztSO1GzUPe7i/85Z4QB4eVy5AmUQUTwX+3u8rkfTOT9ilcvg8 RPshggwBOPi5m+VmH0KDeb9Zdcx/PH/Ts6h17170zZ6ijjAaVIZKYL2hk68eUScf A6937Q0EMf5c+l3f+GCL7c91jU8bk0x74/3LYabsdD2UEaQdIxQK+Y4X/amsxJA2 jooYq0n4hjMw0N1/G9YdOnSP8r1Mus8JCplmqJ3/yK5owSViLosA/8cFJyeQCXRv oDEkrBC0LRCkBfoPZP2yMdRGv9irocHeZ61EPWLmoNWva9m1EQQLm0T2jS7dhL/j tgTyhkTyB58gy92XpJKbJiOqeV0Hl80SXN4s3cOWFAW0j3IcO/9l9x6YfTscUxD5 nSIvZn+Evw8XvHrf40SpL80yKb6urvoX2uzgHXME3RCyEg5Jm7lyQGR8jWCqeuNH 2OTgVSAXj4c= =s0pF -END PGP SIGNATURE- --- This annotated tag includes the following new commits: new e887e3794 Update release howto. new 625d256f8 Update release howto. new 1d862ec8c Create release candidate. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[commons-math] 03/03: Create release candidate.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 1d862ec8cca30a6b797583ef2f837e54830f658d Author: Gilles Sadowski AuthorDate: Tue Dec 13 01:42:40 2022 +0100 Create release candidate. --- RELEASE-NOTES.txt | 224 +++ pom.xml | 4 +- src/changes/changes.xml | 2 +- src/site/site.xml | 2 + src/site/xdoc/download_math.xml | 256 5 files changed, 357 insertions(+), 131 deletions(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt new file mode 100644 index 0..de7a722d2 --- /dev/null +++ b/RELEASE-NOTES.txt @@ -0,0 +1,224 @@ + + Apache Commons Math 4.0-beta1 RELEASE NOTES + +The Apache Commons Math team is pleased to announce the release of commons-math-parent-4.0-beta1 + +The Apache Commons Math project is a library of lightweight mathematics +and statistics components addressing common practical problems. + +This is a major release that requires source changes in applications. +Lower-level functionality has been split off to new components, often +with bug-fixes, performance enhancements and improved API: + Commons RNG, + Commons Numbers, + Commons Geometry, + Commons Statistics. +Functionality still within Commons Math has been modularized and +partly refactored. +This is a work-in-progress (help welcome). +Codes for which the refactoring has not been undertaken (or was +deemed incomplete) have been moved to 'legacy' modules. +The minimum version of the Java platform required to compile and use +Commons Math is Java 8. +Users are encouraged to upgrade to this version, and to the new +components listed above (they are now Commons Math's dependencies). +For code now located in the 'commons-math-legacy' module, upgrading +will be a matter of changing the top-level package name: +From 'org.apache.commons.math3' to 'org.apache.commons.math4.legacy'. +Code in the 'commons-math-legacy-core' module comprise classes that +moved from package 'org.apache.commons.math3' and package +'org.apache.commons.math3.util' (e.g. 'MathArrays') to package +'org.apache.commons.math4.legacy.core'. +Notes: +Class 'FastMath' was renamed 'AccurateMath' (now located in package +'org.apache.commons.math4.legacy.core.jdkmath'). +Caveat: +Although hundreds of issues have been fixed (see 'git log' and the +reports in the bug-tracking system of all the listed components), +many remain due to the lack of human resources necessary in order +to support the whole codebase (it was one of the main reasons for +creating more focused components). + +Changes in this version include: + +New features: +o MATH-1648: "BicubicInterpolator": Provide partial derivatives of interpolating functions. Thanks to Alessandro Moscatelli. +o MATH-1371: Add "ElkanKMeansPlusPlusClusterer" clustering algorithm. Thanks to Artem Barger. +o MATH-1622: Update class "SimplexOptimizer" (in package "o.a.c.m.legacy.optim.nonlinear.scalar.noderiv") +to support simulated annealing. +o MATH-1551: "Percentile": Partial support for weighted data. Thanks to Allen Yu. +o MATH-1529: "AkimaSplineInterpolator": Option to use alternative weights. +o MATH-1509: Add "MiniBatchKMeansClusterer" clustering algorithm. Thanks to Chen Tao. +o MATH-1519: Add "Calinski-Harabsz" clustering evaluator. Thanks to Chen Tao. +o MATH-1516: Interface for ranking a list of clusters. +o MATH-1477: "MillerUpdatingRegression": Fixed "ArrayIndexOutOfBounds" exception. Thanks to Chee Sing Lee. +o MATH-1459: Create a way to automatically calculate a Jacobian matrix using a differentiator. Thanks to Adrian Porter. +o MATH-1426: "DescriptiveStatistics": allow "Double[]" as initializer. Thanks to Karl Richter. +o MATH-1383: Dependency toward the "Commons Rng" component. +o MATH-1015: Gauss-Laguerre quadrature. Thanks to Thomas Neidhart. +o MATH-1350: Improved code coverage (unit tests). Thanks to Rob Tompkins. +o MATH-1336: New 64-bits RNG implementations. On 64-bits systems, they are ~35% faster than +"java.util.Random" for generating "long" or "double" values. They also guarantee +much better randomness than "Random" (cf. MATH-1327). +o MATH-1335: Refactoring of uniform random number generator functionality: new API +implemented in package "o.a.c.m.rng". +o MATH-1337: Adaptor class from new API ("o.a.c.m.rng.RandomSource") to old API +("o.a.c.m.random.RandomGenerator"). +o MATH-1327: Report on performance and correctness of the new RNG implementations. +o MATH-1314:
[commons-math] 01/03: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to annotated tag commons-math-4.0-beta1-RC1 in repository https://gitbox.apache.org/repos/asf/commons-math.git commit e887e3794e2aa872a128e05062e137a60ad48367 Author: Gilles Sadowski AuthorDate: Tue Dec 13 01:36:55 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 0096f58ad..196e85ca1 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -71,9 +71,9 @@ Preliminary checks: * All Java files must contain a license header. The "RAT" maven plugin will generate a report indicating for which files the license is missing. * For a "minor" release, the library must be backward-compatible. Check all - the errors reported by the "Clirr" plugin. + the errors reported by the "Clirr" and/or "Revapi" plugin. * Clear all "CheckStyle" warnings. - * Make sure that the construct reported by "FindBugs" are intentional. + * Make sure that the construct reported by "SpotBugs" are intentional. * Mark all fixed issues as such in the bug-tracking system, and add a corresponding entry in "src/changes/changes.xml". @@ -86,7 +86,19 @@ that the build process can create all the necessary artifacts. The commands $ mvn clean site deploy -Prelease -Ptest-deploy should create the artifacts in the "target/deploy" (note that the "JAVA_HOME" -environment variable msut be defined to point to a valid JDK installation). +environment variable must be defined to point to a valid JDK installation). + +Note: If running from a remote terminal, you might need to tune the "gpg-agent" +configuration file + ~/.gnupg/gpg-agent.conf +to contain the following statements: + ---CUT--- + enable-ssh-support + pinentry-program /usr/bin/pinentry-tty + ---CUT--- +and execute + $ export GPG_TTY=$(tty) +in order to set up the environment for entering the passphrase. (2) @@ -100,6 +112,7 @@ remembering the binding between the local and remote origin branches: $ git branch X.Y-release $ git push -u origin X.Y-release + (3) Switch to the release branch: @@ -115,6 +128,8 @@ branch since the creation of the release branch, there are two cases: merge master branch or version branch into X.Y-release branch: $ git merge master + or + $ git rebase master or, if the version branch is called MATH_3_X $ git merge MATH_3_X @@ -134,10 +149,10 @@ In particular: * Estimate a release date (taking into account the release vote delay) and insert it in the "src/changes/changes.xml" file. * Update the "pom.xml" to contain the final version number and not a SNAPSHOT: - Assuming that the release version will be "3.4", modify the "" tag to + Assuming that the release version will be "4.1", modify the "" tag to read: -3.4 +4.1 Modify the section of "" that also refers to version numbers. You should uncomment the "" line and indicate the @@ -147,7 +162,7 @@ In particular: -3.4 +4.1 RC1
[commons-math] 01/01: Create release candidate.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch 4.0-beta1-release in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 11237fb40f6f62c31eac3fc053b33a8a60147371 Author: Gilles Sadowski AuthorDate: Tue Dec 13 01:42:40 2022 +0100 Create release candidate. --- RELEASE-NOTES.txt | 224 +++ pom.xml | 4 +- src/changes/changes.xml | 2 +- src/site/site.xml | 2 + src/site/xdoc/download_math.xml | 256 5 files changed, 357 insertions(+), 131 deletions(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt new file mode 100644 index 0..de7a722d2 --- /dev/null +++ b/RELEASE-NOTES.txt @@ -0,0 +1,224 @@ + + Apache Commons Math 4.0-beta1 RELEASE NOTES + +The Apache Commons Math team is pleased to announce the release of commons-math-parent-4.0-beta1 + +The Apache Commons Math project is a library of lightweight mathematics +and statistics components addressing common practical problems. + +This is a major release that requires source changes in applications. +Lower-level functionality has been split off to new components, often +with bug-fixes, performance enhancements and improved API: + Commons RNG, + Commons Numbers, + Commons Geometry, + Commons Statistics. +Functionality still within Commons Math has been modularized and +partly refactored. +This is a work-in-progress (help welcome). +Codes for which the refactoring has not been undertaken (or was +deemed incomplete) have been moved to 'legacy' modules. +The minimum version of the Java platform required to compile and use +Commons Math is Java 8. +Users are encouraged to upgrade to this version, and to the new +components listed above (they are now Commons Math's dependencies). +For code now located in the 'commons-math-legacy' module, upgrading +will be a matter of changing the top-level package name: +From 'org.apache.commons.math3' to 'org.apache.commons.math4.legacy'. +Code in the 'commons-math-legacy-core' module comprise classes that +moved from package 'org.apache.commons.math3' and package +'org.apache.commons.math3.util' (e.g. 'MathArrays') to package +'org.apache.commons.math4.legacy.core'. +Notes: +Class 'FastMath' was renamed 'AccurateMath' (now located in package +'org.apache.commons.math4.legacy.core.jdkmath'). +Caveat: +Although hundreds of issues have been fixed (see 'git log' and the +reports in the bug-tracking system of all the listed components), +many remain due to the lack of human resources necessary in order +to support the whole codebase (it was one of the main reasons for +creating more focused components). + +Changes in this version include: + +New features: +o MATH-1648: "BicubicInterpolator": Provide partial derivatives of interpolating functions. Thanks to Alessandro Moscatelli. +o MATH-1371: Add "ElkanKMeansPlusPlusClusterer" clustering algorithm. Thanks to Artem Barger. +o MATH-1622: Update class "SimplexOptimizer" (in package "o.a.c.m.legacy.optim.nonlinear.scalar.noderiv") +to support simulated annealing. +o MATH-1551: "Percentile": Partial support for weighted data. Thanks to Allen Yu. +o MATH-1529: "AkimaSplineInterpolator": Option to use alternative weights. +o MATH-1509: Add "MiniBatchKMeansClusterer" clustering algorithm. Thanks to Chen Tao. +o MATH-1519: Add "Calinski-Harabsz" clustering evaluator. Thanks to Chen Tao. +o MATH-1516: Interface for ranking a list of clusters. +o MATH-1477: "MillerUpdatingRegression": Fixed "ArrayIndexOutOfBounds" exception. Thanks to Chee Sing Lee. +o MATH-1459: Create a way to automatically calculate a Jacobian matrix using a differentiator. Thanks to Adrian Porter. +o MATH-1426: "DescriptiveStatistics": allow "Double[]" as initializer. Thanks to Karl Richter. +o MATH-1383: Dependency toward the "Commons Rng" component. +o MATH-1015: Gauss-Laguerre quadrature. Thanks to Thomas Neidhart. +o MATH-1350: Improved code coverage (unit tests). Thanks to Rob Tompkins. +o MATH-1336: New 64-bits RNG implementations. On 64-bits systems, they are ~35% faster than +"java.util.Random" for generating "long" or "double" values. They also guarantee +much better randomness than "Random" (cf. MATH-1327). +o MATH-1335: Refactoring of uniform random number generator functionality: new API +implemented in package "o.a.c.m.rng". +o MATH-1337: Adaptor class from new API ("o.a.c.m.rng.RandomSource") to old API +("o.a.c.m.random.RandomGenerator"). +o MATH-1327: Report on performance and correctness of the new RNG implementations. +o MATH-1314: Javadoc of the new RNG API ("o.a.c.m.rng
[commons-math] branch 4.0-beta1-release created (now 11237fb40)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch 4.0-beta1-release in repository https://gitbox.apache.org/repos/asf/commons-math.git at 11237fb40 Create release candidate. This branch includes the following new commits: new 11237fb40 Create release candidate. The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[commons-math] branch master updated: Update release howto.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new f4dfc4014 Update release howto. f4dfc4014 is described below commit f4dfc40142bb4e24d92ad62d3bec8afe9a931e7f Author: Gilles Sadowski AuthorDate: Tue Dec 13 01:36:55 2022 +0100 Update release howto. --- doc/release/release.howto.txt | 61 +-- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 0096f58ad..1c3d31c23 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -71,9 +71,9 @@ Preliminary checks: * All Java files must contain a license header. The "RAT" maven plugin will generate a report indicating for which files the license is missing. * For a "minor" release, the library must be backward-compatible. Check all - the errors reported by the "Clirr" plugin. + the errors reported by the "Clirr" and/or "Revapi" plugin. * Clear all "CheckStyle" warnings. - * Make sure that the construct reported by "FindBugs" are intentional. + * Make sure that the construct reported by "SpotBugs" are intentional. * Mark all fixed issues as such in the bug-tracking system, and add a corresponding entry in "src/changes/changes.xml". @@ -86,7 +86,19 @@ that the build process can create all the necessary artifacts. The commands $ mvn clean site deploy -Prelease -Ptest-deploy should create the artifacts in the "target/deploy" (note that the "JAVA_HOME" -environment variable msut be defined to point to a valid JDK installation). +environment variable must be defined to point to a valid JDK installation). + +Note: If running from a remote terminal, you might need to tune the "gpg-agent" +configuration file + ~/.gnupg/gpg-agent.conf +to contain the following statements: + ---CUT--- + enable-ssh-support + pinentry-program /usr/bin/pinentry-tty + ---CUT--- +and execute + $ export GPG_TTY=$(tty) +in order to set up the environment for entering the passphrase. (2) @@ -100,6 +112,7 @@ remembering the binding between the local and remote origin branches: $ git branch X.Y-release $ git push -u origin X.Y-release + (3) Switch to the release branch: @@ -115,6 +128,8 @@ branch since the creation of the release branch, there are two cases: merge master branch or version branch into X.Y-release branch: $ git merge master + or + $ git rebase master or, if the version branch is called MATH_3_X $ git merge MATH_3_X @@ -134,10 +149,10 @@ In particular: * Estimate a release date (taking into account the release vote delay) and insert it in the "src/changes/changes.xml" file. * Update the "pom.xml" to contain the final version number and not a SNAPSHOT: - Assuming that the release version will be "3.4", modify the "" tag to + Assuming that the release version will be "4.0-beta1", modify the "" tag to read: -3.4 +4.0-beta1 Modify the section of "" that also refers to version numbers. You should uncomment the "" line and indicate the @@ -147,7 +162,7 @@ In particular: -3.4 +4.0-beta1 RC1 @@ -157,7 +172,7 @@ In particular: The "download" page template is located at "src/site/xdoc/download_math.xml". This file is updated automatically by running the command: - $ mvn commons:download-page + $ mvn commons-build:download-page (7) @@ -180,7 +195,7 @@ Check you did not forget any file: $ git status Commit the changes: - $ git commit -m "creating release candidate" + $ git commit -m "Create release candidate." (8) @@ -193,31 +208,27 @@ Then, assuming the first candidate, the suffix will be "RC1" (this should be the same as in the "" in the "pom.xml"), and the command will be: - $ git tag -s -m "Creating Apache Commons Math v3.4 RC1 tag." MATH_3_4_RC1 - -If you have several GPG keys, you may prefer to use "-u keyId" to select a specific -key for signing the tag instead of "-s" which select automatically one key -from the configured e-mail address. + $ git tag -u "__Your_key_id__" -m "Create Commons Math v4.0-beta1 RC1 tag." commons-math-4.0-beta1-RC1 Check the tag GPG signature: - $ git tag -v MATH_3_4_RC1 + $ git tag -v commons-math-4.0-beta1-RC1 You will get something like: - object cf4a9d70c9ac24dd7196995390171150e4e56451 + object 1d862ec8cca30a6b797583ef2f837e54830f658d type commit - tag MATH_3_4_RC1 - tagger Luc Maisonobe 1418934614 +0100
[commons-math] branch master updated: Remove unnecessary line (that broke the build).
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 780dba1a3 Remove unnecessary line (that broke the build). 780dba1a3 is described below commit 780dba1a30e187126e90ff51df4a60b7dea81248 Author: Gilles Sadowski AuthorDate: Tue Dec 13 00:54:22 2022 +0100 Remove unnecessary line (that broke the build). --- src/site/xdoc/userguide/analysis.xml | 1 - src/site/xdoc/userguide/complex.xml | 1 - src/site/xdoc/userguide/distribution.xml | 1 - src/site/xdoc/userguide/exceptions.xml | 1 - src/site/xdoc/userguide/filter.xml | 1 - src/site/xdoc/userguide/fitting.xml | 1 - src/site/xdoc/userguide/fraction.xml | 1 - src/site/xdoc/userguide/genetics.xml | 1 - src/site/xdoc/userguide/geometry.xml | 1 - src/site/xdoc/userguide/index.xml| 1 - src/site/xdoc/userguide/leastsquares.xml | 1 - src/site/xdoc/userguide/linear.xml | 1 - src/site/xdoc/userguide/ml.xml | 1 - src/site/xdoc/userguide/ode.xml | 1 - src/site/xdoc/userguide/optimization.xml | 1 - src/site/xdoc/userguide/overview.xml | 1 - src/site/xdoc/userguide/random.xml | 1 - src/site/xdoc/userguide/special.xml | 1 - src/site/xdoc/userguide/stat.xml | 1 - src/site/xdoc/userguide/transform.xml| 1 - src/site/xdoc/userguide/utilities.xml| 1 - 21 files changed, 21 deletions(-) diff --git a/src/site/xdoc/userguide/analysis.xml b/src/site/xdoc/userguide/analysis.xml index 81da13ea6..145eb71f1 100644 --- a/src/site/xdoc/userguide/analysis.xml +++ b/src/site/xdoc/userguide/analysis.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Numerical Analysis diff --git a/src/site/xdoc/userguide/complex.xml b/src/site/xdoc/userguide/complex.xml index d2193ad32..c72a4e394 100644 --- a/src/site/xdoc/userguide/complex.xml +++ b/src/site/xdoc/userguide/complex.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Complex Numbers diff --git a/src/site/xdoc/userguide/distribution.xml b/src/site/xdoc/userguide/distribution.xml index 6a21aa098..2f33bae80 100644 --- a/src/site/xdoc/userguide/distribution.xml +++ b/src/site/xdoc/userguide/distribution.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Distributions diff --git a/src/site/xdoc/userguide/exceptions.xml b/src/site/xdoc/userguide/exceptions.xml index 0cd1af168..22757df48 100644 --- a/src/site/xdoc/userguide/exceptions.xml +++ b/src/site/xdoc/userguide/exceptions.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Exceptions diff --git a/src/site/xdoc/userguide/filter.xml b/src/site/xdoc/userguide/filter.xml index 3d3e1cd3c..50b0733f3 100644 --- a/src/site/xdoc/userguide/filter.xml +++ b/src/site/xdoc/userguide/filter.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Filters diff --git a/src/site/xdoc/userguide/fitting.xml b/src/site/xdoc/userguide/fitting.xml index 6caace8e9..369e38111 100644 --- a/src/site/xdoc/userguide/fitting.xml +++ b/src/site/xdoc/userguide/fitting.xml @@ -17,7 +17,6 @@ limitations under the License. --> - diff --git a/src/site/xdoc/userguide/fraction.xml b/src/site/xdoc/userguide/fraction.xml index 3f736d904..d8c1b2943 100644 --- a/src/site/xdoc/userguide/fraction.xml +++ b/src/site/xdoc/userguide/fraction.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Fractions diff --git a/src/site/xdoc/userguide/genetics.xml b/src/site/xdoc/userguide/genetics.xml index 8bba26e26..bf4c17ce0 100644 --- a/src/site/xdoc/userguide/genetics.xml +++ b/src/site/xdoc/userguide/genetics.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Genetic Algorithms diff --git a/src/site/xdoc/userguide/geometry.xml b/src/site/xdoc/userguide/geometry.xml index e033e7464..e2a9ab2dd 100644 --- a/src/site/xdoc/userguide/geometry.xml +++ b/src/site/xdoc/userguide/geometry.xml @@ -17,7 +17,6 @@ limitations under the License. --> - diff --git a/src/site/xdoc/userguide/index.xml b/src/site/xdoc/userguide/index.xml index 69c88e1f4..9a0f9c44a 100644 --- a/src/site/xdoc/userguide/index.xml +++ b/src/site/xdoc/userguide/index.xml @@ -17,7 +17,6 @@ limitations under the License. --> - The Commons Math User Guide - Table of Contents diff --git a/src/site/xdoc/userguide/leastsquares.xml b/src/site/xdoc/userguide/leastsquares.xml index 35cd27bbf..6153de3e6 100644 --- a/src/site/xdoc/userguide/leastsquares.xml +++ b/src/site/xdoc/userg
[commons-math] 02/02: Rephrase release notes.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit d44f88653ab8167d0b737ed0df3409082a24dde3 Author: Gilles Sadowski AuthorDate: Mon Dec 12 14:55:51 2022 +0100 Rephrase release notes. --- src/changes/changes.xml | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 70d70f83d..7376ed016 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -77,25 +77,24 @@ The minimum version of the Java platform required to compile and use Users are encouraged to upgrade to this version, and to the new components listed above (they are now Commons Math's dependencies). -For codes that are now located in the 'commons-math-legacy' module, - upgrading will be a matter of changing the top-level package name: +For code now located in the 'commons-math-legacy' module, upgrading + will be a matter of changing the top-level package name: From 'org.apache.commons.math3' to 'org.apache.commons.math4.legacy'. - Codes that are now located in the 'commons-math-legacy-core' module - comprise classes that moved from packages 'org.apache.commons.math3' - and 'org.apache.commons.math3.util' (e.g. 'MathArrays') over to - package 'org.apache.commons.math4.legacy.core'. + Code in the 'commons-math-legacy-core' module comprise classes that + moved from package 'org.apache.commons.math3' and package + 'org.apache.commons.math3.util' (e.g. 'MathArrays') to package + 'org.apache.commons.math4.legacy.core'. Notes: - Class 'FastMath' has been renamed 'AccurateMath' (now located in - package 'org.apache.commons.math4.legacy.core.jdkmath'). + Class 'FastMath' was renamed 'AccurateMath' (now located in package + 'org.apache.commons.math4.legacy.core.jdkmath'). Caveat: Although hundreds of issues have been fixed (see 'git log' and the reports in the bug-tracking system of all the listed components), - many remain, due to the lack of human resources necessary in order - to support the whole codebase. [The Commons Math maintenance - nightmare was one of the main reasons for creating more focused - components.] + many remain due to the lack of human resources necessary in order + to support the whole codebase (it was one of the main reasons for + creating more focused components). "> Remove class "CombinatoricsUtils" (in package "o.a.c.m.util").
[commons-math] 01/02: Upgrade to CP 55.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 5d9ea27e97c99bf4ab0394c262b4f5cfc77240c6 Author: Gilles Sadowski AuthorDate: Mon Dec 12 14:53:03 2022 +0100 Upgrade to CP 55. --- pom.xml | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 18891e3ba..8212c3636 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.apache.commons commons-parent -54 +55 commons-math-parent @@ -69,8 +69,6 @@ 3.6.1 ${basedir} - -true -.gitattributes src/test/maxima/special/RealFunctionValidation/MANIFEST.txt @@ -427,8 +423,6 @@ src/site/resources/release-notes/RELEASE-NOTES-*.txt dist-archive/** **/site-content/** - -.gitattributes
[commons-math] branch master updated (873d64550 -> d44f88653)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git from 873d64550 Depend on released version (1.0) of "Commons Statistics". new 5d9ea27e9 Upgrade to CP 55. new d44f88653 Rephrase release notes. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: pom.xml | 8 +--- src/changes/changes.xml | 23 +++ 2 files changed, 12 insertions(+), 19 deletions(-)
svn commit: r1905852 - in /commons/cms-site/trunk: conf/component_releases.properties content/xdoc/index.xml.vm
Author: erans Date: Thu Dec 8 10:09:47 2022 New Revision: 1905852 URL: http://svn.apache.org/viewvc?rev=1905852=rev Log: Update release info (web site template). Modified: commons/cms-site/trunk/conf/component_releases.properties commons/cms-site/trunk/content/xdoc/index.xml.vm Modified: commons/cms-site/trunk/conf/component_releases.properties URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/conf/component_releases.properties?rev=1905852=1905851=1905852=diff == --- commons/cms-site/trunk/conf/component_releases.properties (original) +++ commons/cms-site/trunk/conf/component_releases.properties Thu Dec 8 10:09:47 2022 @@ -55,9 +55,9 @@ jxpathReleased=2008-08-14 langVersion=3.12.0 langReleased=2021-02-26 loggingVersion=1.2 -loggingReleasetextd=2014-07-11 -mathVersion=3.5 -mathReleased=2015-04-17 +loggingReleased=2014-07-11 +mathVersion=3.6.1 +mathReleased=2016-03-21 netVersion=3.9.0 netReleased=2022-12-02 numbersVersion=1.1 Modified: commons/cms-site/trunk/content/xdoc/index.xml.vm URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/content/xdoc/index.xml.vm?rev=1905852=1905851=1905852=diff == --- commons/cms-site/trunk/content/xdoc/index.xml.vm (original) +++ commons/cms-site/trunk/content/xdoc/index.xml.vm Thu Dec 8 10:09:47 2022 @@ -259,7 +259,7 @@ ${netReleased} Numbers Number types (complex, quaternion, fraction) and utilities (arrays, combinatorics). -https://search.maven.org/artifact/org.apache.commons/commons-numbers-parent/${numbersVersion}/pom; rel="nofollow"> +https://central.sonatype.dev/artifact/org.apache.commons/commons-numbers-bom/${numbersVersion}; rel="nofollow"> https://img.shields.io/maven-central/v/org.apache.commons/commons-numbers-parent; style="max-width:100%;"/> ${numbersReleased} OGNL @@ -283,7 +283,7 @@ ${rdfReleased} RNG Implementations of random numbers generators. -https://search.maven.org/artifact/org.apache.commons/commons-rng-parent/${rngVersion}/pom; rel="nofollow"> +https://central.sonatype.dev/artifact/org.apache.commons/commons-rng-bom/${rngVersion}; rel="nofollow"> https://img.shields.io/maven-central/v/org.apache.commons/commons-rng-parent; style="max-width:100%;"/> ${rngReleased} SCXML @@ -293,7 +293,8 @@ ${scxmlReleased} Statistics Statistics. -${statisticsVersion} +https://central.sonatype.dev/artifact/org.apache.commons/commons-statistics-distribution/${statisticsVersion}; rel="nofollow"> + https://img.shields.io/maven-central/v/org.apache.commons/commons-statistics-parent; style="max-width:100%;"/> ${statisticsReleased} Text Apache Commons Text is a library focused on algorithms working on strings.
[commons-math] branch master updated: Depend on released version (1.0) of "Commons Statistics".
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 873d64550 Depend on released version (1.0) of "Commons Statistics". 873d64550 is described below commit 873d645500daf26d8fc6beae31d2ff500661a3de Author: Gilles Sadowski AuthorDate: Tue Dec 6 22:46:36 2022 +0100 Depend on released version (1.0) of "Commons Statistics". --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0124caba1..18891e3ba 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ 1.1 1.5 1.0 - 1.0-SNAPSHOT +1.0 3.6.1 ${basedir}
[commons-math] branch master updated: MATH-1651: Modified unit test.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 50977290c MATH-1651: Modified unit test. 50977290c is described below commit 50977290cdda79896ccb6304067341486fe104d2 Author: Gilles Sadowski AuthorDate: Thu Nov 3 12:23:43 2022 +0100 MATH-1651: Modified unit test. The old test was flaky because it assumed a fixed iteration order. [Thanks to Anant Dahiya for pointing it out.] The new test indirectly checks how neuron's identifiers are assigned. Closes #213. --- .../commons/math4/neuralnet/NetworkTest.java | 44 +- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/commons-math-neuralnet/src/test/java/org/apache/commons/math4/neuralnet/NetworkTest.java b/commons-math-neuralnet/src/test/java/org/apache/commons/math4/neuralnet/NetworkTest.java index 53421242e..f959c2a52 100644 --- a/commons-math-neuralnet/src/test/java/org/apache/commons/math4/neuralnet/NetworkTest.java +++ b/commons-math-neuralnet/src/test/java/org/apache/commons/math4/neuralnet/NetworkTest.java @@ -18,6 +18,7 @@ package org.apache.commons.math4.neuralnet; import java.util.Collection; +import java.util.Arrays; import java.util.NoSuchElementException; import org.junit.Assert; @@ -108,25 +109,16 @@ public class NetworkTest { } @Test -public void testIterationOrder() { +public void testIdentifierAssignment() { final FeatureInitializer[] initArray = {init}; -final Network net = new NeuronSquareMesh2D(4, false, - 3, true, - SquareNeighbourhood.VON_NEUMANN, - initArray).getNetwork(); - -// Check that the comparator provides a specific order. -boolean isUnspecifiedOrder = false; -long previousId = Long.MIN_VALUE; -for (Neuron n : net.getNeurons()) { -final long currentId = n.getIdentifier(); -if (currentId < previousId) { -isUnspecifiedOrder = true; -break; -} -previousId = currentId; -} -Assert.assertFalse(isUnspecifiedOrder); +final long[] ids = getIdentifiers(new NeuronSquareMesh2D(4, false, +3, true, + SquareNeighbourhood.VON_NEUMANN, + initArray).getNetwork()); + +Assert.assertEquals(12, ids.length); +Assert.assertEquals(0, ids[0]); +Assert.assertEquals(11, ids[ids.length - 1]); } /* @@ -169,4 +161,20 @@ public class NetworkTest { Assert.assertFalse(netNeighbours.contains(netNeuron1)); Assert.assertTrue(copyNeighbours.contains(copyNeuron1)); } + +/** + * @param net Network. + * @return the sorted list identifiers. + */ +private long[] getIdentifiers(Network net) { +final Collection neurons = net.getNeurons(); +final long[] identifiers = new long[neurons.size()]; + +int idx = 0; +for (Neuron n : neurons) { +identifiers[idx++] = n.getIdentifier(); +} +Arrays.sort(identifiers); +return identifiers; +} }
[commons-math] 03/03: Track changes.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 97191fc73cda17794ac44cf2fcae629695001999 Author: Gilles Sadowski AuthorDate: Sat Aug 20 02:44:37 2022 +0200 Track changes. Closes #211. --- src/changes/changes.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 7e06e5e3a..fdff0ca37 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -97,6 +97,9 @@ Caveat: nightmare was one of the main reasons for creating more focused components.] "> + +"HaltonSequenceGenerator": Raise exception when precondition is not met. + "BicubicInterpolator": Provide partial derivatives of interpolating functions.
[commons-math] 02/03: Javadoc.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 0217542162120f9e6688715e84e2bea1c7de91ea Author: Gilles Sadowski AuthorDate: Sat Aug 20 02:43:51 2022 +0200 Javadoc. --- .../org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java index 3805be497..a45e16e93 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java @@ -163,7 +163,7 @@ public class HaltonSequenceGenerator implements Supplier { * * @param index the index in the sequence to skip to * @return the i-th point in the Halton sequence - * @throws org.apache.commons.math4.legacy.exception.NotPositiveException NotPositiveException if index 0 + * @throws NotPositiveException if {@code index < 0}. */ public double[] skipTo(final int index) { if (index < 0) {
[commons-math] 01/03: MATH-1647: Enforce precondition (index must be larger than 0).
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 01ba89bf26da87e998cbc68262afc637ea4dd615 Author: rednikeeg AuthorDate: Fri Aug 19 21:27:11 2022 +0300 MATH-1647: Enforce precondition (index must be larger than 0). --- .../commons/math4/legacy/random/HaltonSequenceGenerator.java | 5 + .../math4/legacy/random/HaltonSequenceGeneratorTest.java | 10 ++ 2 files changed, 15 insertions(+) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java index 8a175618b..3805be497 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/HaltonSequenceGenerator.java @@ -19,6 +19,7 @@ package org.apache.commons.math4.legacy.random; import java.util.function.Supplier; import org.apache.commons.math4.legacy.exception.DimensionMismatchException; +import org.apache.commons.math4.legacy.exception.NotPositiveException; import org.apache.commons.math4.legacy.exception.NullArgumentException; import org.apache.commons.math4.legacy.exception.OutOfRangeException; @@ -165,6 +166,10 @@ public class HaltonSequenceGenerator implements Supplier { * @throws org.apache.commons.math4.legacy.exception.NotPositiveException NotPositiveException if index 0 */ public double[] skipTo(final int index) { +if (index < 0) { +throw new NotPositiveException(index); +} + count = index; return get(); } diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/random/HaltonSequenceGeneratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/random/HaltonSequenceGeneratorTest.java index 4dd800b41..c1931f517 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/random/HaltonSequenceGeneratorTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/random/HaltonSequenceGeneratorTest.java @@ -18,6 +18,7 @@ package org.apache.commons.math4.legacy.random; import org.junit.Assert; import org.apache.commons.math4.legacy.exception.DimensionMismatchException; +import org.apache.commons.math4.legacy.exception.NotPositiveException; import org.apache.commons.math4.legacy.exception.NullArgumentException; import org.apache.commons.math4.legacy.exception.OutOfRangeException; import org.junit.Before; @@ -131,4 +132,13 @@ public class HaltonSequenceGeneratorTest { } } +@Test +public void testSkipToNegative() { +try { +generator.skipTo(-4584); +Assert.fail("an exception should have been thrown"); +} catch (NotPositiveException e) { +// expected +} +} }
[commons-math] branch master updated (3c1c92d3e -> 97191fc73)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git from 3c1c92d3e MATH-1589: Remove spurious "throws" clause. new 01ba89bf2 MATH-1647: Enforce precondition (index must be larger than 0). new 021754216 Javadoc. new 97191fc73 Track changes. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../commons/math4/legacy/random/HaltonSequenceGenerator.java | 7 ++- .../math4/legacy/random/HaltonSequenceGeneratorTest.java | 10 ++ src/changes/changes.xml| 3 +++ 3 files changed, 19 insertions(+), 1 deletion(-)
[commons-math] branch master updated: MATH-1589: Remove spurious "throws" clause.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 3c1c92d3e MATH-1589: Remove spurious "throws" clause. 3c1c92d3e is described below commit 3c1c92d3eb6c13db92ea6123f8ad0d2383117f66 Author: Gilles Sadowski AuthorDate: Fri Aug 12 16:52:30 2022 +0200 MATH-1589: Remove spurious "throws" clause. --- .../legacy/analysis/interpolation/SplineInterpolator.java | 13 - .../analysis/interpolation/UnivariateInterpolator.java | 14 -- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/SplineInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/SplineInterpolator.java index e85ae1004..d6d262a6a 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/SplineInterpolator.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/SplineInterpolator.java @@ -19,7 +19,6 @@ package org.apache.commons.math4.legacy.analysis.interpolation; import org.apache.commons.math4.legacy.analysis.polynomials.PolynomialFunction; import org.apache.commons.math4.legacy.analysis.polynomials.PolynomialSplineFunction; import org.apache.commons.math4.legacy.exception.DimensionMismatchException; -import org.apache.commons.math4.legacy.exception.NonMonotonicSequenceException; import org.apache.commons.math4.legacy.exception.NumberIsTooSmallException; import org.apache.commons.math4.legacy.exception.util.LocalizedFormats; import org.apache.commons.math4.legacy.core.MathArrays; @@ -57,16 +56,12 @@ public class SplineInterpolator implements UnivariateInterpolator { * @return a function which interpolates the data set * @throws DimensionMismatchException if {@code x} and {@code y} * have different sizes. - * @throws NonMonotonicSequenceException if {@code x} is not sorted in - * strict increasing order. - * @throws NumberIsTooSmallException if the size of {@code x} is smaller - * than 3. + * @throws NumberIsTooSmallException if the size of {@code x < 3}. + * @throws org.apache.commons.math4.legacy.exception.NonMonotonicSequenceException + * if {@code x} is not sorted in strict increasing order. */ @Override -public PolynomialSplineFunction interpolate(double[] x, double[] y) -throws DimensionMismatchException, - NumberIsTooSmallException, - NonMonotonicSequenceException { +public PolynomialSplineFunction interpolate(double[] x, double[] y) { if (x.length != y.length) { throw new DimensionMismatchException(x.length, y.length); } diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/UnivariateInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/UnivariateInterpolator.java index ef2a5fcae..ebf576d41 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/UnivariateInterpolator.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/UnivariateInterpolator.java @@ -17,25 +17,19 @@ package org.apache.commons.math4.legacy.analysis.interpolation; import org.apache.commons.math4.legacy.analysis.UnivariateFunction; -import org.apache.commons.math4.legacy.exception.DimensionMismatchException; -import org.apache.commons.math4.legacy.exception.MathIllegalArgumentException; /** * Interface representing a univariate real interpolating function. - * */ public interface UnivariateInterpolator { /** - * Compute an interpolating function for the dataset. + * Computes an interpolating function for the dataset. * * @param xval Arguments for the interpolation points. * @param yval Values for the interpolation points. * @return a function which interpolates the dataset. - * @throws MathIllegalArgumentException - * if the arguments violate assumptions made by the interpolation - * algorithm. - * @throws DimensionMismatchException if arrays lengths do not match + * @throws org.apache.commons.math4.legacy.exception.MathIllegalArgumentException + * if the arguments violate assumptions made by the interpolation algorithm. */ -UnivariateFunction interpolate(double[] xval, double[] yval) -throws MathIllegalArgumentException, DimensionMismatchException; +UnivariateFunction interpolate(double[] xval, double[] yval); }
[commons-math] 02/03: Use MathJax.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 9946ec4e22a436adc1c2124c11109c8ffbd1a601 Author: Gilles Sadowski AuthorDate: Wed Jul 27 15:49:14 2022 +0200 Use MathJax. --- .../BicubicInterpolatingFunctionTest.java | 28 -- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java index 6a17b44d9..e87a28aec 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunctionTest.java @@ -174,8 +174,9 @@ public final class BicubicInterpolatingFunctionTest { /** * Interpolating a plane. - * - * z = 2 x - 3 y + 5 + * \[ + * z = 2 x - 3 y + 5 + * \] */ @Test public void testPlane() { @@ -232,8 +233,9 @@ public final class BicubicInterpolatingFunctionTest { /** * Interpolating a paraboloid. - * - * z = 2 x2 - 3 y2 + 4 x y - 5 + * \[ + * z = 2 x^2 - 3 y^2 + 4 x y - 5 + * \] */ @Test public void testParaboloid() { @@ -287,11 +289,12 @@ public final class BicubicInterpolatingFunctionTest { maxTolerance, false); } - + /** * Test for partial derivatives of {@link BicubicFunction}. - * - * f(x, y) = ij (i+1) (j+2) xi yj + * \[ + * f(x, y) = \Sigma_i \Sigma_j (i+1) (j+2) x^i y^j + * \] */ @Test public void testSplinePartialDerivatives() { @@ -371,11 +374,12 @@ public final class BicubicInterpolatingFunctionTest { /** * Test that the partial derivatives computed from a * {@link BicubicInterpolatingFunction} match the input data. - * - * f(x, y) = 5 - * - 3 x + 2 y - * - x y + 2 x2 - 3 y2 - * + 4 x2 y - x y2 - 3 x3 + y3 + * \[ + * f(x, y) = 5 + * - 3 x + 2 y + * - x y + 2 x^2 - 3 y^2 + * + 4 x^2 y - x y^2 - 3 x^3 + y^3 + * \] */ @Test public void testMatchingPartialDerivatives() {
[commons-math] 01/03: MATH-1648: Derivatives for "BicubicInterpolatingFunction".
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 8e6dee595832951e4d74e795a76e5aff236d4181 Author: amoscatelli AuthorDate: Fri Jul 22 15:21:49 2022 +0200 MATH-1648: Derivatives for "BicubicInterpolatingFunction". --- .../BicubicInterpolatingFunction.java | 239 - .../interpolation/BicubicInterpolator.java | 29 ++- .../BicubicInterpolatingFunctionTest.java | 228 3 files changed, 493 insertions(+), 3 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java index fda6349c6..2543f0b8f 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java @@ -17,6 +17,8 @@ package org.apache.commons.math4.legacy.analysis.interpolation; import java.util.Arrays; +import java.util.function.DoubleBinaryOperator; +import java.util.function.Function; import org.apache.commons.numbers.core.Sum; import org.apache.commons.math4.legacy.analysis.BivariateFunction; @@ -92,6 +94,38 @@ public class BicubicInterpolatingFunction throws DimensionMismatchException, NoDataException, NonMonotonicSequenceException { +this(x, y, f, dFdX, dFdY, d2FdXdY, false); +} + +/** + * @param x Sample values of the x-coordinate, in increasing order. + * @param y Sample values of the y-coordinate, in increasing order. + * @param f Values of the function on every grid point. + * @param dFdX Values of the partial derivative of function with respect + * to x on every grid point. + * @param dFdY Values of the partial derivative of function with respect + * to y on every grid point. + * @param d2FdXdY Values of the cross partial derivative of function on + * every grid point. + * @param initializeDerivatives Whether to initialize the internal data + * needed for calling any of the methods that compute the partial derivatives + * this function. + * @throws DimensionMismatchException if the various arrays do not contain + * the expected number of elements. + * @throws NonMonotonicSequenceException if {@code x} or {@code y} are + * not strictly increasing. + * @throws NoDataException if any of the arrays has zero length. + */ +public BicubicInterpolatingFunction(double[] x, +double[] y, +double[][] f, +double[][] dFdX, +double[][] dFdY, +double[][] d2FdXdY, +boolean initializeDerivatives) +throws DimensionMismatchException, + NoDataException, + NonMonotonicSequenceException { final int xLen = x.length; final int yLen = y.length; @@ -147,7 +181,10 @@ public class BicubicInterpolatingFunction d2FdXdY[i][j] * xRyR, d2FdXdY[ip1][j] * xRyR, d2FdXdY[i][jp1] * xRyR, d2FdXdY[ip1][jp1] * xRyR }; -splines[i][j] = new BicubicFunction(computeSplineCoefficients(beta)); +splines[i][j] = new BicubicFunction(computeSplineCoefficients(beta), +xR, +yR, +initializeDerivatives); } } } @@ -181,6 +218,75 @@ public class BicubicInterpolatingFunction y > yval[yval.length - 1]); } +/** + * @return the first partial derivative respect to x. + * @throws NullPointerException if the internal data were not initialized + * (cf. {@link #BicubicInterpolatingFunction(double[],double[],double[][], + * double[][],double[][],double[][],boolean) constructor}). + */ +public DoubleBinaryOperator partialDerivativeX() { +return partialDerivative(BicubicFunction::partialDerivativeX); +} + +/** + * @return the first partial derivative respect to y. + * @throws NullPointerException if the internal data were not initialized + * (cf. {@link #BicubicInterpolatingFunction(double[],double[],double[][], + * double[][],double[][],double[][],boolean) constructor}). + */ +public DoubleBinaryOperator partialDerivativeY() { +return partialDerivative(BicubicFunction::parti
[commons-math] branch master updated (4ef2d3b8c -> 8b3496720)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git from 4ef2d3b8c Documentation update (release instructions). new 8e6dee595 MATH-1648: Derivatives for "BicubicInterpolatingFunction". new 9946ec4e2 Use MathJax. new 8b3496720 Track changes. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../BicubicInterpolatingFunction.java | 239 +++- .../interpolation/BicubicInterpolator.java | 29 ++- .../BicubicInterpolatingFunctionTest.java | 240 - src/changes/changes.xml| 7 +- 4 files changed, 506 insertions(+), 9 deletions(-)
[commons-math] 03/03: Track changes.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 8b3496720f99e38f5a9c029435e941caabde6118 Author: Gilles Sadowski AuthorDate: Wed Jul 27 15:50:18 2022 +0200 Track changes. --- src/changes/changes.xml | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index e96a3ab67..7e06e5e3a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -97,8 +97,11 @@ Caveat: nightmare was one of the main reasons for creating more focused components.] "> - -Dot not change caller's arguments in "KMeansPlusPlusClusterer": + +"BicubicInterpolator": Provide partial derivatives of interpolating functions. + + +Do not change caller's arguments in "KMeansPlusPlusClusterer": A negative value for "maxIterations" will raise an exception.
[commons-math] branch master updated: Documentation update (release instructions).
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 4ef2d3b8c Documentation update (release instructions). 4ef2d3b8c is described below commit 4ef2d3b8c2d4acdc56dd2e64e12b8d58002ffe9a Author: Gilles Sadowski AuthorDate: Mon Jul 25 15:18:23 2022 +0200 Documentation update (release instructions). --- doc/release/release.howto.txt | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 6f8275caf..0096f58ad 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -80,11 +80,13 @@ Preliminary checks: (1) As a first optional step, you can test that everything works locally, i.e. -that the build process can create all the necessary artifacts. The command +that the build process can create all the necessary artifacts. The commands - $ mvn clean deploy -Prelease -Ptest-deploy + $ mvn -Prelease-notes changes:announcement-generate + $ mvn clean site deploy -Prelease -Ptest-deploy -should create the artifacts in the "target/deploy". +should create the artifacts in the "target/deploy" (note that the "JAVA_HOME" +environment variable msut be defined to point to a valid JDK installation). (2)
[commons-math] branch master updated: MATH-1589: Remove spurious "throws" clause.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new f94991f22 MATH-1589: Remove spurious "throws" clause. f94991f22 is described below commit f94991f224f01ba25c0677bf09e3f6e5861acd47 Author: Gilles Sadowski AuthorDate: Wed Jul 20 14:47:45 2022 +0200 MATH-1589: Remove spurious "throws" clause. --- .../differentiation/DerivativeStructure.java | 162 - .../MultivariateDifferentiableFunction.java| 12 +- .../UnivariateDifferentiableFunction.java | 9 +- 3 files changed, 71 insertions(+), 112 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java index 1b7c06905..7812ca6c8 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java @@ -23,7 +23,6 @@ import org.apache.commons.math4.legacy.core.Field; import org.apache.commons.math4.legacy.core.FieldElement; import org.apache.commons.math4.legacy.core.RealFieldElement; import org.apache.commons.math4.legacy.exception.DimensionMismatchException; -import org.apache.commons.math4.legacy.exception.MathArithmeticException; import org.apache.commons.math4.legacy.exception.NumberIsTooLargeException; import org.apache.commons.math4.core.jdkmath.JdkMath; import org.apache.commons.math4.legacy.core.MathArrays; @@ -76,10 +75,9 @@ public class DerivativeStructure implements RealFieldElement= parameters) { @@ -130,11 +126,11 @@ public class DerivativeStructure implements RealFieldElementx2+y2) - * @exception DimensionMismatchException if number of free parameters + * @throws DimensionMismatchException if number of free parameters * or orders do not match * @since 3.2 */ -public static DerivativeStructure hypot(final DerivativeStructure x, final DerivativeStructure y) -throws DimensionMismatchException { +public static DerivativeStructure hypot(final DerivativeStructure x, final DerivativeStructure y) { return x.hypot(y); } @@ -598,11 +583,10 @@ public class DerivativeStructure implements RealFieldElementThis interface represents a simple function which computes @@ -34,10 +33,8 @@ public interface UnivariateDifferentiableFunction extends UnivariateFunction { * value and the first derivative of the function. * @param t function input value * @return function result - * @exception DimensionMismatchException if t is inconsistent with the - * function's free parameters or order + * @throws org.apache.commons.math4.legacy.exception.DimensionMismatchException + * if {@code t} is inconsistent with the function's free parameters or order. */ -DerivativeStructure value(DerivativeStructure t) -throws DimensionMismatchException; - +DerivativeStructure value(DerivativeStructure t); }
[commons-math] 05/05: Javadoc.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git commit aa0d427dd6dd1b98a3bfc97896ddef30eb4077de Author: Gilles Sadowski AuthorDate: Mon Jun 27 15:16:27 2022 +0200 Javadoc. --- .../org/apache/commons/math4/ga2/Population.java | 24 +++--- .../commons/math4/ga2/gene/package-info.java | 29 ++ 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/Population.java b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/Population.java index a75979acc..f8cf7639b 100644 --- a/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/Population.java +++ b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/Population.java @@ -29,7 +29,23 @@ import org.apache.commons.rng.UniformRandomProvider; /** * Collection of chromosomes and associated fitness. * - * Class is not thread-safe. + * + * Notes: + * + * + * Class is not thread-safe. + * + * + * Class assumes that each chromosome instance (of type {@code }) + * identifies a unique individual, irrespective of whether other + * individuals share the same sequence of genes; hence type {@code } + * must not override method {@link Object#equals(Object) + * equals(Object o)}. + * In other words, if an overridden {@code equals} compares equality of + * gene sequences, the current implementation of this class will only + * contain individuals whose gene sequence is unique. + * + * * * @param Genotype. * @param Phenotype. @@ -71,9 +87,13 @@ public class Population { /** * Insert chromosomes into the population. + * * Fitness and rank are calculated. * If the fitness is {@code NaN}, the corresponding chromosome is * not added to the population. + * + * Note: All the {@code chromosomes} are passed in a single call to the + * {@link FitnessService#apply(Function,Collection) fitness calculator}. * * @param chromosomes Chromosomes. */ @@ -102,8 +122,6 @@ public class Population { } } -/** - * /** * Retrieves the rank. * Ranks are attributed in the range [0, N - 1] (where N is the diff --git a/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/package-info.java b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/package-info.java new file mode 100644 index 0..2a10d7c27 --- /dev/null +++ b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/package-info.java @@ -0,0 +1,29 @@ +/* + * 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. + */ +/** + * Chromosome types (and operators that can be applied to them) are + * defined in sub-packages of this package. + * + * Note about implementing a specific representation (genotype): + * + * + * Implementation must not override {@link Object#equals(Object)} + * (cf. {@link org.apache.commons.math4.ga2.Population Population}). + * + * + */ +package org.apache.commons.math4.ga2.gene;
[commons-math] 02/05: MATH-1644: Prevent computed probability from exceeding 1.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 3c30a6d520a13e1f2548ee7414356c10ec6c92f4 Author: Gilles Sadowski AuthorDate: Sat Apr 9 14:07:03 2022 +0200 MATH-1644: Prevent computed probability from exceeding 1. --- .../apache/commons/math4/legacy/stat/inference/BinomialTest.java | 2 +- .../commons/math4/legacy/stat/inference/BinomialTestTest.java | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java index 80650c9b4..a7deb3187 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java @@ -138,7 +138,7 @@ public class BinomialTest { if (criticalValueLow == criticalValueHigh) { pTotal += pLow; } else { -pTotal += 2 * pLow; +pTotal += 2 * Math.nextDown(pLow); } criticalValueLow++; criticalValueHigh--; diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java index bf83dfa17..f480e0b66 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java @@ -126,4 +126,11 @@ public class BinomialTestTest { Assert.assertFalse(testStatistic.binomialTest(trials, successes, probability, AlternativeHypothesis.GREATER_THAN, alpha01)); Assert.assertFalse(testStatistic.binomialTest(trials, successes, probability, AlternativeHypothesis.LESS_THAN, alpha05)); } + +@Test +public void testMath1644() { +final BinomialTest bt = new BinomialTest(); +final double pval = bt.binomialTest(10, 5, 0.5, AlternativeHypothesis.TWO_SIDED); +Assert.assertTrue("pval=" + pval, pval <= 1); +} }
[commons-math] 01/05: git-wip-us => gitbox
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 69c120c0158a061043bb77b2761a4786ae6aadd0 Author: Sebb AuthorDate: Tue Apr 5 11:37:39 2022 +0100 git-wip-us => gitbox --- doc/release/release.howto.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt index 2fa64bf8b..6f8275caf 100644 --- a/doc/release/release.howto.txt +++ b/doc/release/release.howto.txt @@ -227,7 +227,7 @@ Switch to a new directory out of your regular workspace, and retrieve the official tag from the Apache repository: $ cd /tmp - $ git clone https://git-wip-us.apache.org/repos/asf/commons-math.git --branch MATH_3_4_RC1 + $ git clone https://gitbox.apache.org/repos/asf/commons-math.git --branch MATH_3_4_RC1 In the command above, the --branch option accepts both branch names and tags names, so we specify directly the tag here. Git will warn that the resulting workspace @@ -343,7 +343,7 @@ Tag name: MATH_3_4_RC1 (signature can be checked from git using 'git tag -v') Tag URL: - <https://git-wip-us.apache.org/repos/asf?p=commons-math.git;a=commit;h=cf4a9d70c9ac24dd7196995390171150e4e56451> + <https://gitbox.apache.org/repos/asf?p=commons-math.git;a=commit;h=cf4a9d70c9ac24dd7196995390171150e4e56451> Commit ID the tag points at: cf4a9d70c9ac24dd7196995390171150e4e56451
[commons-math] 04/05: MATH-1618: Make "stopping condition" a "BiPredicate".
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git commit 383256f8cfcbf1de70f93a1d1ea0e7c972812af0 Author: Gilles Sadowski AuthorDate: Sun Jun 12 02:41:56 2022 +0200 MATH-1618: Make "stopping condition" a "BiPredicate". Second argument is the generation count (as determined by the caller). --- .../ga/mathfunctions/MathFunctionOptimizer2.java | 4 ++-- .../commons/math4/ga2/GeneticAlgorithmFactory.java | 13 +-- .../commons/math4/ga2/stop/UnchangedFitness.java | 27 +++--- 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java index 96ea5087b..ac128d89e 100644 --- a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java +++ b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java @@ -23,7 +23,7 @@ import java.util.HashMap; import java.util.List; import java.util.function.Function; import java.util.function.ToDoubleFunction; -import java.util.function.Predicate; +import java.util.function.BiPredicate; import java.util.concurrent.Executors; import java.util.concurrent.ExecutorService; import java.util.concurrent.Callable; @@ -100,7 +100,7 @@ public final class MathFunctionOptimizer2 { }; // Stopping condition (not thread-safe). -final Predicate> stop = +final BiPredicate, Integer> stop = new UnchangedFitness(UnchangedFitness.Type.BEST, numGeneration); diff --git a/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/GeneticAlgorithmFactory.java b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/GeneticAlgorithmFactory.java index 40ec98249..9386e5617 100644 --- a/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/GeneticAlgorithmFactory.java +++ b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/GeneticAlgorithmFactory.java @@ -23,7 +23,7 @@ import java.util.ArrayList; import java.util.Map; import java.util.concurrent.Callable; import java.util.function.Function; -import java.util.function.Predicate; +import java.util.function.BiPredicate; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.commons.rng.simple.RandomSource; @@ -43,7 +43,7 @@ public final class GeneticAlgorithmFactory implements Callable decoder; /** Criterion for stopping the evolution. */ -private final Predicate> stop; +private final BiPredicate, Integer> stop; /** Fitness calculator. */ private final FitnessService fitness; /** Chromosome selector. */ @@ -71,7 +71,7 @@ public final class GeneticAlgorithmFactory implements Callable init, Function decoder, -Predicate> stop, +BiPredicate, Integer> stop, FitnessService fitness, Selection selection, Map, ApplicationRate> operators, @@ -107,7 +107,7 @@ public final class GeneticAlgorithmFactory implements Callable Callable> create(Collection init, Function decoder, - Predicate> stop, + BiPredicate, Integer> stop, FitnessService fitness, Selection selection, Map, ApplicationRate> operators, @@ -147,7 +147,7 @@ public final class GeneticAlgorithmFactory implements Callable initFactory, int populationSize, Function decoder, - Predicate> stop, + BiPredicate, Integer> stop, FitnessService fitness, Selection selection, Map, ApplicationRate> operators,
[commons-math] 03/05: MATH-1618: Replace class "OnePointCrossover" with "NPointCrossover".
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git commit f0fe9ab8eb73e981cde5c0c15ca9349f1f5a7185 Author: Gilles Sadowski AuthorDate: Fri Jun 10 10:06:25 2022 +0200 MATH-1618: Replace class "OnePointCrossover" with "NPointCrossover". The former is a particular case of the latter. --- .../ga/mathfunctions/MathFunctionOptimizer2.java | 12 ++-- ...OnePointCrossover.java => NPointCrossover.java} | 77 -- .../commons/math4/ga2/gene/binary/Operators.java | 7 +- 3 files changed, 65 insertions(+), 31 deletions(-) diff --git a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java index e8a16a375..96ea5087b 100644 --- a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java +++ b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer2.java @@ -129,7 +129,7 @@ public final class MathFunctionOptimizer2 { // Offspring generators. final Map, ApplicationRate> operators = new HashMap<>(); operators.put(Operators.mutation(mutation), RateGenerators.constant(1)); -operators.put(Operators.onePointCrossover(), RateGenerators.constant(crossover)); +operators.put(Operators.nPointCrossover(1), RateGenerators.constant(crossover)); final Callable> ga = GeneticAlgorithmFactory.create(numGenes, @@ -145,14 +145,12 @@ public final class MathFunctionOptimizer2 { new GenerationLogger()); try { -// Run the GA and retrieve contents of the last generation. -final List> lastGen = ga.call().contents(true); -final Map.Entry top = lastGen.get(0); -final Coordinates best = decoder.apply(top.getKey()); -final double bestValue = fitnessFunction.applyAsDouble(best); +// Run the GA and retrieve the best individual from the last generation. +final Map.Entry best = ga.call().contents(true).get(0); // CHECKSTYLE: stop all -System.out.println("fitness=" + bestValue + " for " + best.toString()); +System.out.println("fitness=" + best.getValue() + + " for " + decoder.apply(best.getKey()).toString()); // CHECKSTYLE: resume all } catch (Exception e) { // Rethrow. diff --git a/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/binary/OnePointCrossover.java b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/binary/NPointCrossover.java similarity index 50% rename from commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/binary/OnePointCrossover.java rename to commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/binary/NPointCrossover.java index 95342a7bb..d7ff29d5b 100644 --- a/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/binary/OnePointCrossover.java +++ b/commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/binary/NPointCrossover.java @@ -27,7 +27,21 @@ import org.apache.commons.math4.ga2.AbstractCrossover; * Genetic operator. * Class is immutable. */ -/* package-private */ class OnePointCrossover extends AbstractCrossover { +/* package-private */ class NPointCrossover extends AbstractCrossover { +/** Number of crossover points. */ +private final int numberOfPoints; + +/** + * @param n Number of crossover points. + */ +NPointCrossover(int n) { +if (n <= 0) { +throw new IllegalArgumentException("Not strictly positive: " + n); +} + +numberOfPoints = n; +} + /** {@inheritDoc} */ @Override protected List apply(Chromosome parent1, @@ -40,36 +54,57 @@ import org.apache.commons.math4.ga2.AbstractCrossover; parent2.size()); } -// Index of crossover point. -final int xIndex = 1 + rng.nextInt(size - 1); -final BitSet p1 = parent1.asBitSet(); -final BitSet p2 = parent2.asBitSet(); -final BitSet c1; -final BitSet c2; +final BitSet c1 = parent1.asBitSet(); +final BitSet c2 = parent2.asBitSet(); -final int midIndex = size / 2; -if (xIndex > midIndex) { -c1 = parent1.asBi
[commons-math] branch feature__MATH-1563__genetic_algorithm updated (ddfd5bf85 -> aa0d427dd)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git from ddfd5bf85 MATH-1618: Design proposal (WIP). new 69c120c01 git-wip-us => gitbox new 3c30a6d52 MATH-1644: Prevent computed probability from exceeding 1. new f0fe9ab8e MATH-1618: Replace class "OnePointCrossover" with "NPointCrossover". new 383256f8c MATH-1618: Make "stopping condition" a "BiPredicate". new aa0d427dd Javadoc. The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../ga/mathfunctions/MathFunctionOptimizer2.java | 16 ++--- .../commons/math4/ga2/GeneticAlgorithmFactory.java | 13 ++-- .../org/apache/commons/math4/ga2/Population.java | 24 ++- ...OnePointCrossover.java => NPointCrossover.java} | 77 -- .../commons/math4/ga2/gene/binary/Operators.java | 7 +- .../package-info.java} | 21 +++--- .../commons/math4/ga2/stop/UnchangedFitness.java | 27 +--- .../math4/legacy/stat/inference/BinomialTest.java | 2 +- .../legacy/stat/inference/BinomialTestTest.java| 7 ++ doc/release/release.howto.txt | 4 +- 10 files changed, 133 insertions(+), 65 deletions(-) rename commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/gene/binary/{OnePointCrossover.java => NPointCrossover.java} (50%) copy commons-math-ga2/src/main/java/org/apache/commons/math4/ga2/{ChromosomeFactory.java => gene/package-info.java} (66%)
[commons-math] branch feature__MATH-1563__genetic_algorithm updated: MATH-1618: Design proposal (WIP).
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/feature__MATH-1563__genetic_algorithm by this push: new ddfd5bf85 MATH-1618: Design proposal (WIP). ddfd5bf85 is described below commit ddfd5bf859d04cc5da604b20021ceaba9de7def6 Author: Gilles Sadowski AuthorDate: Sun May 1 22:19:08 2022 +0200 MATH-1618: Design proposal (WIP). --- .../{Coordinate.java => Coordinates.java} | 25 +-- .../ga/mathfunctions/MathFunctionOptimizer.java| 45 ++-- .../ga/mathfunctions/MathFunctionOptimizer2.java | 189 .../examples/ga/mathfunctions/StandAlone.java | 81 +-- commons-math-examples/examples-ga/pom.xml | 5 + commons-math-examples/pom.xml | 6 + commons-math-ga2/LICENCE | 201 + commons-math-ga2/NOTICE| 5 + .../examples-ga => commons-math-ga2}/pom.xml | 36 ++-- .../commons/math4/ga2/AbstractCrossover.java | 78 +++ .../apache/commons/math4/ga2/AbstractMutation.java | 95 .../apache/commons/math4/ga2/ApplicationRate.java | 92 .../commons/math4/ga2/ChromosomeFactory.java | 40 +--- .../apache/commons/math4/ga2/FitnessService.java | 47 ++-- .../commons/math4/ga2/GenerationCallback.java | 41 +--- .../commons/math4/ga2/GeneticAlgorithmFactory.java | 240 + .../apache/commons/math4/ga2/GeneticOperator.java | 45 ++-- .../org/apache/commons/math4/ga2/Population.java | 191 .../org/apache/commons/math4/ga2/Selection.java| 43 ++-- .../ga2/fitness/FitnessConcurrentCalculator.java | 98 + .../commons/math4/ga2/fitness/package-info.java| 38 +--- .../commons/math4/ga2/gene/binary/Chromosome.java | 109 ++ .../commons/math4/ga2/gene/binary/Mutation.java| 50 ++--- .../math4/ga2/gene/binary/OnePointCrossover.java | 75 +++ .../commons/math4/ga2/gene/binary/Operators.java | 41 ++-- .../math4/ga2/gene/binary/package-info.java| 38 +--- .../org/apache/commons/math4/ga2/package-info.java | 38 +--- .../math4/ga2/rate/AverageRankLinearRate.java | 52 + .../commons/math4/ga2/rate/ConstantRate.java | 38 ++-- .../commons/math4/ga2/rate/RateGenerators.java | 46 ++-- .../commons/math4/ga2/rate/package-info.java | 38 +--- .../commons/math4/ga2/select/Tournament.java | 77 +++ .../commons/math4/ga2/select/package-info.java | 38 +--- .../commons/math4/ga2/stop/UnchangedFitness.java | 116 ++ .../commons/math4/ga2/stop/package-info.java | 38 +--- pom.xml| 1 + .../checkstyle/checkstyle-suppressions.xml | 3 + 37 files changed, 1892 insertions(+), 547 deletions(-) diff --git a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Coordinate.java b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Coordinates.java similarity index 69% copy from commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Coordinate.java copy to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Coordinates.java index eee31fbc8..30ce0d63d 100644 --- a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Coordinate.java +++ b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Coordinates.java @@ -16,31 +16,28 @@ */ package org.apache.commons.math4.examples.ga.mathfunctions; -import java.util.List; +import java.util.Arrays; /** - * This class represents the coordinate of the problem domain i.e. the phenotype - * of chromosome. + * Chromosome phenotype. */ -public class Coordinate { - -/** coordinate of all dimensions. **/ -private final List values; +public class Coordinates { +/** Coordinates. **/ +private final double[] values; /** - * constructor. - * @param values coordinates of all dimensions. + * @param values Coordinates. */ -public Coordinate(List values) { -this.values = values; +public Coordinates(double[] values) { +this.values = values.clone(); } /** * Returns the values of all coordinates. * @return values of coordinates */ -public List getValues() { -return values; +public double[] getValues() { +return values.clone(); } /** @@ -48,7
[commons-math] branch feature__MATH-1563__genetic_algorithm updated: MATH-1563: Introducing new implementation of GA functionality (WIP).
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/feature__MATH-1563__genetic_algorithm by this push: new efcd557a6 MATH-1563: Introducing new implementation of GA functionality (WIP). efcd557a6 is described below commit efcd557a6d98ad751807037a1842e23dadc7b947 Author: avijit-basak <02508P744@host.docker.internal> AuthorDate: Fri Apr 8 12:36:43 2022 +0530 MATH-1563: Introducing new implementation of GA functionality (WIP). Closes #209. --- .../math4/examples/ga/tsp/TSPOptimizer.java| 17 ++ .../examples/ga/tsp/legacy/LegacyTSPOptimizer.java | 16 -- .../commons/math4/ga/AbstractGeneticAlgorithm.java | 36 ++ .../commons/math4/ga/AdaptiveGeneticAlgorithm.java | 34 +++- .../apache/commons/math4/ga/GeneticAlgorithm.java | 29 - .../commons/math4/ga/ParallelGeneticAlgorithm.java | 6 .../math4/ga/chromosome/AbstractChromosome.java| 4 --- .../math4/ga/chromosome/BinaryChromosome.java | 2 -- .../math4/ga/chromosome/ChromosomePair.java| 1 - .../ga/chromosome/IntegralValuedChromosome.java| 1 - .../math4/ga/chromosome/RealValuedChromosome.java | 1 - .../math4/ga/convergence/FixedElapsedTime.java | 2 -- .../math4/ga/convergence/FixedGenerationCount.java | 2 +- .../math4/ga/convergence/UnchangedBestFitness.java | 2 -- .../math4/ga/convergence/UnchangedMeanFitness.java | 3 -- .../AbstractListChromosomeCrossoverPolicy.java | 1 - ...nearAverageRankBasedCrossoverRateGenerator.java | 2 -- ...nearMaximumRankBasedCrossoverRateGenerator.java | 1 - .../stats/PopulationStatisticalSummaryImpl.java| 5 --- .../ga/listener/PopulationStatisticsLogger.java| 1 - .../AbstractListChromosomeMutationPolicy.java | 1 - .../math4/ga/mutation/IntegralValuedMutation.java | 1 - .../math4/ga/mutation/RealValuedMutation.java | 1 - .../AdaptiveLinearMutationRateGenerator.java | 2 -- .../ConstantMutationRateGenerator.java | 1 - .../math4/ga/population/ListPopulation.java| 8 - .../math4/ga/selection/TournamentSelection.java| 1 - .../math4/ga/utils/RandomProviderManager.java | 1 - .../math4/ga/GeneticAlgorithmTestBinaryOneMax.java | 6 ++-- 29 files changed, 36 insertions(+), 152 deletions(-) diff --git a/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java b/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java index 4b0e85c47..de9a5efca 100644 --- a/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java +++ b/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java @@ -76,7 +76,15 @@ public final class TSPOptimizer { final RealValuedChromosome> bestFinal = (RealValuedChromosome>) finalPopulation .getFittestChromosome(); -logger.info(bestFinal.decode().toString()); +StringBuilder schedule = new StringBuilder(); +schedule.append("Travel Shcedule: " + System.lineSeparator()); +List bestCities = bestFinal.decode(); +for (City city : bestCities) { +schedule.append("City - " + city.getIndex() + System.lineSeparator()); +} +schedule.append("Total distance - " + Math.abs(bestFinal.evaluate())); + +logger.info(schedule.toString()); } private static Population> getInitialPopulation(List cities, int populationSize) { @@ -87,12 +95,9 @@ public final class TSPOptimizer { ChromosomeRepresentationUtils.randomPermutation(cities.size()), decodedChromosome -> { final DistanceMatrix distanceMatrix = DistanceMatrix.getInstance(cities); double totalDistance = 0.0; -int index1 = 0; -int index2 = 0; for (int j = 0; j < cities.size(); j++) { -index1 = j; -index2 = (j == cities.size() - 1) ? 0 : j + 1; -totalDistance += distanceMatrix.getDistance(cities.get(index1), cities.get(index2)); +totalDistance += distanceMatrix.getDistance(decodedChromosome.get(j), +decodedChromosome.get((j == cities.size() - 1) ? 0 : j + 1)); } return -totalDistance; }, new RandomKeyDecoder(cities))); diff --git a/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/legacy/LegacyTSPOptimizer.java b/co
[commons-math] branch master updated: MATH-1644: Prevent computed probability from exceeding 1.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new f067b2b4b MATH-1644: Prevent computed probability from exceeding 1. f067b2b4b is described below commit f067b2b4bae9d7690a84cd65bedd45bca5691441 Author: Gilles Sadowski AuthorDate: Sat Apr 9 14:07:03 2022 +0200 MATH-1644: Prevent computed probability from exceeding 1. --- .../apache/commons/math4/legacy/stat/inference/BinomialTest.java | 2 +- .../commons/math4/legacy/stat/inference/BinomialTestTest.java | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java index 80650c9b4..a7deb3187 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/BinomialTest.java @@ -138,7 +138,7 @@ public class BinomialTest { if (criticalValueLow == criticalValueHigh) { pTotal += pLow; } else { -pTotal += 2 * pLow; +pTotal += 2 * Math.nextDown(pLow); } criticalValueLow++; criticalValueHigh--; diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java index bf83dfa17..f480e0b66 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/inference/BinomialTestTest.java @@ -126,4 +126,11 @@ public class BinomialTestTest { Assert.assertFalse(testStatistic.binomialTest(trials, successes, probability, AlternativeHypothesis.GREATER_THAN, alpha01)); Assert.assertFalse(testStatistic.binomialTest(trials, successes, probability, AlternativeHypothesis.LESS_THAN, alpha05)); } + +@Test +public void testMath1644() { +final BinomialTest bt = new BinomialTest(); +final double pval = bt.binomialTest(10, 5, 0.5, AlternativeHypothesis.TWO_SIDED); +Assert.assertTrue("pval=" + pval, pval <= 1); +} }
[commons-math] branch feature__MATH-1563__genetic_algorithm created (now 99ca991)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git. at 99ca991 MATH-1563: Introducing new implementation of GA functionality (WIP). This branch includes the following new commits: new 99ca991 MATH-1563: Introducing new implementation of GA functionality (WIP). The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[commons-math] branch feature__MATH-1563__genetic_algorithm deleted (was c573e36)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git. was c573e36 MATH-1563: Introducing new implementation of GA functionality (WIP). This change permanently discards the following revisions: discard c573e36 MATH-1563: Introducing new implementation of GA functionality (WIP).
[commons-math] branch feature__MATH-1563__genetic_algorithm created (now c573e36)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git. at c573e36 MATH-1563: Introducing new implementation of GA functionality (WIP). This branch includes the following new commits: new c573e36 MATH-1563: Introducing new implementation of GA functionality (WIP). The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[commons-math] branch feature__MATH-1563__genetic_algorithm deleted (was 0d6c6e6)
This is an automated email from the ASF dual-hosted git repository. erans pushed a change to branch feature__MATH-1563__genetic_algorithm in repository https://gitbox.apache.org/repos/asf/commons-math.git. was 0d6c6e6 Accept usage of "System.out" in examples. This change permanently discards the following revisions: discard 0d6c6e6 Accept usage of "System.out" in examples. discard 663caaa Unused field (example applications). discard e9a895f Replaced convoluted way to print to "System.out" (examples). discard 02d4592 Remove GUI codes in example applications. discard 07deb60 Consolidate POM files. discard 765242f MATH-1563: Miscellaneous updates. discard 464f9dc Merge branch 'feature__MATH-1563__genetic_algorithm' of https://github.com/apache/commons-math.git into feature/MATH-1563-FIX discard 7e2213f Merge branch 'feature__MATH-1563__genetic_algorithm' of https://gitbox.apache.org/repos/asf/commons-math into feature__MATH-1563__genetic_algorithm discard 994835b Add dependency on "ga" module. discard 8084cdd Add "LICENCE" and "NOTICE" files. discard 19f1c78 Move GA module declaration to ensure that there are no dependencies on legacy codes. discard 5d71c14 MATH-1563: Introducing new implementation of GA functionality (WIP). discard 6a87190 Check build on feature branch. discard 7a6c35b Fixed 'examples-ga' module. discard 2785891 Converted protected method to private and fixed minor bugs. discard e33ddb3 Changes from 'feature__MATH-1563__genetic_algorithm' of apache repo. discard 27e464b Add dependency on "ga" module. discard f478393 Add "LICENCE" and "NOTICE" files. discard 56de37e Move GA module declaration to ensure that there are no dependencies on legacy codes. discard 3d19c1b MATH-1563: Introducing new implementation of GA functionality (WIP). discard be8dcaf Check build on feature branch. discard 96e382d MATH-1563: Introducing new implementation of GA functionality (WIP).
[commons-math] branch master updated: HTML5 javadoc comments.
This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git The following commit(s) were added to refs/heads/master by this push: new 57dda85 HTML5 javadoc comments. 57dda85 is described below commit 57dda85533fbac18389a3ddc70e3640aa4484a91 Author: Gilles Sadowski AuthorDate: Thu Mar 3 12:02:58 2022 +0100 HTML5 javadoc comments. As of Java 11, the "javadoc" command requires compliance. --- .../legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java| 3 ++- .../org/apache/commons/math4/legacy/linear/RealLinearOperator.java | 2 +- .../math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java | 3 ++- .../legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java | 3 ++- .../main/java/org/apache/commons/math4/legacy/ode/package-info.java | 6 -- .../commons/math4/legacy/ode/sampling/FieldStepNormalizer.java | 3 ++- .../apache/commons/math4/legacy/ode/sampling/StepNormalizer.java| 3 ++- .../apache/commons/math4/legacy/stat/ranking/NaturalRanking.java| 3 ++- .../commons/math4/legacy/fitting/leastsquares/MinpackTest.java | 2 +- .../scalar/gradient/NonLinearConjugateGradientOptimizerTest.java| 3 ++- .../org/apache/commons/math4/transform/FastHadamardTransform.java | 6 -- 11 files changed, 24 insertions(+), 13 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java index 14518e6..a1f37bd 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java @@ -57,7 +57,8 @@ import org.apache.commons.numbers.core.Precision; * href="http://www.netlib.org/minpack/disclaimer;>here, for convenience, it * is reproduced below. * - * + * + * MINPACK redistribution policy * *Minpack Copyright Notice (1999) University of Chicago. *All rights reserved diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealLinearOperator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealLinearOperator.java index 2f5024d..3583363 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealLinearOperator.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealLinearOperator.java @@ -38,7 +38,7 @@ import org.apache.commons.math4.legacy.exception.DimensionMismatchException; * * * - * Barret et al. (1994) + * Barret et al. (1994) * * R. Barrett, M. Berry, T. F. Chan, J. Demmel, J. M. Donato, J. Dongarra, * V. Eijkhout, R. Pozo, C. Romine and H. Van der Vorst, diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java index 9916e0b..ba6dd0e 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java @@ -62,7 +62,8 @@ import org.apache.commons.math4.core.jdkmath.JdkMath; * href="http://www.unige.ch/~hairer/prog/licence.txt;>here, for * convenience, it is reproduced below. * - * + * + * odex redistribution policy * Copyright (c) 2004, Ernst Hairer * * Redistribution and use in source and binary forms, with or diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java index 41f5de4..7c095ec 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java @@ -42,7 +42,8 @@ import org.apache.commons.math4.core.jdkmath.JdkMath; * href="http://www.unige.ch/~hairer/prog/licence.txt;>here, for * convenience, it is reproduced below. * - * + * + * odex redistribution policy * Copyright (c) 2004, Ernst Hairer * * Redistribution and use in source and binary forms, with or diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/package-info.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/package-info.java index 11ac