commons-math.git
6 months agoUpgrade dependencies.
Gilles Sadowski [Sun, 23 Jan 2022 02:55:21 +0000 (03:55 +0100)] 
Upgrade dependencies.

6 months agoMATH-1640: Do not try to outguess the caller.
Gilles Sadowski [Sat, 22 Jan 2022 17:53:17 +0000 (18:53 +0100)] 
MATH-1640: Do not try to outguess the caller.

6 months agoAvoid array declarations written in C-style syntax and replace it with java.
Arturo Bernal [Tue, 18 Jan 2022 18:28:55 +0000 (19:28 +0100)] 
Avoid array declarations written in C-style syntax and replace it with java.

Closes #202.

6 months agoFix duplicate reference (POM).
Gilles Sadowski [Wed, 19 Jan 2022 04:21:00 +0000 (05:21 +0100)] 
Fix duplicate reference (POM).

6 months agoRelax tolerance (unit test).
Gilles Sadowski [Wed, 19 Jan 2022 04:19:47 +0000 (05:19 +0100)] 
Relax tolerance (unit test).

6 months agoMove "shade" plugin to a profile (POM).
Gilles Sadowski [Wed, 19 Jan 2022 03:54:26 +0000 (04:54 +0100)] 
Move "shade" plugin to a profile (POM).

Cf. https://markmail.org/message/xvsc75mt6fpz2k65

6 months agoRemove dependency fileset
Alex Herbert [Wed, 19 Jan 2022 00:12:21 +0000 (00:12 +0000)] 
Remove dependency fileset

6 months agoMerge branch 'master' of https://gitbox.apache.org/repos/asf/commons-math
Gilles Sadowski [Tue, 18 Jan 2022 19:01:21 +0000 (20:01 +0100)] 
Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-math

6 months agoDisable jacoco coverage check in core module
aherbert [Tue, 18 Jan 2022 18:21:29 +0000 (18:21 +0000)] 
Disable jacoco coverage check in core module

This should allow Travis to build.

6 months agoDo not perform site checkout by default
aherbert [Tue, 18 Jan 2022 17:55:15 +0000 (17:55 +0000)] 
Do not perform site checkout by default

6 months agoAdd a release profile
aherbert [Tue, 18 Jan 2022 17:35:17 +0000 (17:35 +0000)] 
Add a release profile

6 months agoRemove examples and correct artifact ids in dist-archive
aherbert [Tue, 18 Jan 2022 17:34:57 +0000 (17:34 +0000)] 
Remove examples and correct artifact ids in dist-archive

6 months agoReplace calls to deprecated classes and methods (unit tests).
Gilles Sadowski [Tue, 18 Jan 2022 03:37:54 +0000 (04:37 +0100)] 
Replace calls to deprecated classes and methods (unit tests).

6 months agoReplace "CMAESOptimizer.Sigma" with "Sigma".
Gilles Sadowski [Mon, 17 Jan 2022 01:37:20 +0000 (02:37 +0100)] 
Replace "CMAESOptimizer.Sigma" with "Sigma".

6 months agoRelax tolerance (unit tests).
Gilles Sadowski [Thu, 13 Jan 2022 14:51:32 +0000 (15:51 +0100)] 
Relax tolerance (unit tests).

6 months agoRemove spurious file.
Gilles Sadowski [Thu, 13 Jan 2022 14:50:22 +0000 (15:50 +0100)] 
Remove spurious file.

Thanks to Karl-Philipp Richter.

Closes #201.

6 months agoAllow successful build on Java 9+.
Gilles Sadowski [Tue, 11 Jan 2022 00:05:58 +0000 (01:05 +0100)] 
Allow successful build on Java 9+.

Currently "JdkMath" implements all "Math" methods only on Java 8 (or lower).

7 months agoTrack changes.
Gilles Sadowski [Sat, 8 Jan 2022 23:19:02 +0000 (00:19 +0100)] 
Track changes.

7 months agoRemove non-applicable terms from "LICENCE" and "NOTICE" files.
Gilles Sadowski [Sat, 8 Jan 2022 14:46:22 +0000 (15:46 +0100)] 
Remove non-applicable terms from "LICENCE" and "NOTICE" files.

The referred dependencies are not used in the "neuralnet" module.

7 months agoAdd accessors.
Gilles Sadowski [Sat, 8 Jan 2022 13:52:55 +0000 (14:52 +0100)] 
Add accessors.

Allow retrieval of the full state, e.g. for persistent storage (cf. MATH-1594).

7 months agoUpdate copyright notice (2022).
Gilles Sadowski [Thu, 6 Jan 2022 00:18:24 +0000 (01:18 +0100)] 
Update copyright notice (2022).

7 months agoRemove comparator.
Gilles Sadowski [Thu, 6 Jan 2022 00:04:31 +0000 (01:04 +0100)] 
Remove comparator.

Its usage is unnecessary within the library.

7 months agoUnused "import" statements.
Gilles Sadowski [Wed, 5 Jan 2022 23:26:11 +0000 (00:26 +0100)] 
Unused "import" statements.

7 months agoJavadoc.
Gilles Sadowski [Wed, 5 Jan 2022 23:16:40 +0000 (00:16 +0100)] 
Javadoc.

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 15:10:46 +0000 (16:10 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoUnused "import" statements.
Gilles Sadowski [Sat, 1 Jan 2022 12:25:44 +0000 (13:25 +0100)] 
Unused "import" statements.

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Fri, 31 Dec 2021 00:59:20 +0000 (01:59 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Fri, 31 Dec 2021 00:44:22 +0000 (01:44 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 23:59:27 +0000 (00:59 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoRemove spurious "throws" clause.
Gilles Sadowski [Thu, 30 Dec 2021 23:53:17 +0000 (00:53 +0100)] 
Remove spurious "throws" clause.

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 23:44:16 +0000 (00:44 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoAdd unit tests.
Gilles Sadowski [Thu, 30 Dec 2021 23:34:07 +0000 (00:34 +0100)] 
Add unit tests.

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 23:31:49 +0000 (00:31 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 22:29:18 +0000 (23:29 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 17:12:41 +0000 (18:12 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 17:11:26 +0000 (18:11 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoMATH-1594: Remove "Serializable".
Gilles Sadowski [Thu, 30 Dec 2021 16:27:48 +0000 (17:27 +0100)] 
MATH-1594: Remove "Serializable".

7 months agoObsolete package.
Gilles Sadowski [Thu, 30 Dec 2021 15:12:28 +0000 (16:12 +0100)] 
Obsolete package.

7 months agoTypo (userguide).
Gilles Sadowski [Sun, 12 Dec 2021 11:56:41 +0000 (12:56 +0100)] 
Typo (userguide).

8 months agoComment out test case that fails too often.
Gilles Sadowski [Wed, 1 Dec 2021 01:36:17 +0000 (02:36 +0100)] 
Comment out test case that fails too often.

8 months agoMATH-1635: Unit test demonstrating the reported issue.
Gilles Sadowski [Wed, 1 Dec 2021 01:27:51 +0000 (02:27 +0100)] 
MATH-1635: Unit test demonstrating the reported issue.

Test is set to "@Ignore" since the behaviour may be a known limitation.

8 months agoMATH-1636: Remove "isSupportedConnected" (as per STATISTICS-48).
Gilles Sadowski [Wed, 1 Dec 2021 01:06:16 +0000 (02:06 +0100)] 
MATH-1636: Remove "isSupportedConnected" (as per STATISTICS-48).

9 months agoJavadoc.
Gilles Sadowski [Sun, 17 Oct 2021 13:27:45 +0000 (15:27 +0200)] 
Javadoc.

9 months agoRemove methods that were calling the "Math" implementation.
Gilles Sadowski [Sun, 17 Oct 2021 00:03:42 +0000 (02:03 +0200)] 
Remove methods that were calling the "Math" implementation.

9 months agoClass "JdkMath" bridges user code and alternative implementations.
Gilles Sadowski [Sat, 16 Oct 2021 23:46:06 +0000 (01:46 +0200)] 
Class "JdkMath" bridges user code and alternative implementations.

It's a "drop-in" replacement for JDK's "Math" as of Java 8 (cf. MATH-1630).

"AccurateMath" contains pure Java, acccurate, implementations of "Math" functions.
But it is no longer required to implement all of them.

9 months agoAdd files in new maven module.
Gilles Sadowski [Sat, 16 Oct 2021 08:48:27 +0000 (10:48 +0200)] 
Add files in new maven module.

9 months agoRemove non-applicable rules (SpotBugs).
Gilles Sadowski [Sat, 16 Oct 2021 08:39:20 +0000 (10:39 +0200)] 
Remove non-applicable rules (SpotBugs).

9 months agoAdapt configuration to class being moved to another package.
Gilles Sadowski [Sat, 16 Oct 2021 08:33:39 +0000 (10:33 +0200)] 
Adapt configuration to class being moved to another package.

9 months agoTrack changes.
Gilles Sadowski [Sat, 16 Oct 2021 00:23:17 +0000 (02:23 +0200)] 
Track changes.

9 months agoMATH-1630: Runtime switch between JDK and CM implementations of the methods defined...
Gilles Sadowski [Thu, 14 Oct 2021 08:56:56 +0000 (10:56 +0200)] 
MATH-1630: Runtime switch between JDK and CM implementations of the methods defined in "java.lang.Math".

Default is to use the CM implementations in order to retain previous behaviour.
When using the JDK implementations, some unit tests fail (on Java 8).

Class "AccurateMath" was moved to "o.a.c.math4.core" package.
[Unit tests for that class were not moved because they depend on "legacy" classes.]

9 months agoMATH-1629: Throw "ArithmeticException" instead of "MathArithmeticException".
Gilles Sadowski [Tue, 28 Sep 2021 23:42:46 +0000 (01:42 +0200)] 
MATH-1629: Throw "ArithmeticException" instead of "MathArithmeticException".

9 months agoSpurious "throws" clauses.
Gilles Sadowski [Tue, 28 Sep 2021 23:00:15 +0000 (01:00 +0200)] 
Spurious "throws" clauses.

9 months agoJavadoc.
Gilles Sadowski [Tue, 28 Sep 2021 19:08:37 +0000 (21:08 +0200)] 
Javadoc.

9 months agoUse "valueOf".
Gilles Sadowski [Tue, 28 Sep 2021 09:56:02 +0000 (11:56 +0200)] 
Use "valueOf".

Call to constructor is deprecated in Java 11.

9 months agoUpdated tests to use factory constructors for Statistics distributions
aherbert [Wed, 13 Oct 2021 13:20:47 +0000 (14:20 +0100)] 
Updated tests to use factory constructors for Statistics distributions

9 months agoUpdated SpotBugs 3.1.8 to 4.3.0 to allow building on JDK 17.
aherbert [Wed, 13 Oct 2021 13:09:08 +0000 (14:09 +0100)] 
Updated SpotBugs 3.1.8 to 4.3.0 to allow building on JDK 17.

A generic exclusion has been added to allow the build to pass.

9 months agoUpdated to use factory constructors for Statistics distributions
aherbert [Wed, 13 Oct 2021 13:01:08 +0000 (14:01 +0100)] 
Updated to use factory constructors for Statistics distributions

10 months agoMATH-1462: Extend workaround for bins that contain up to 3 values.
Gilles Sadowski [Sun, 26 Sep 2021 23:02:54 +0000 (01:02 +0200)] 
MATH-1462: Extend workaround for bins that contain up to 3 values.

10 months agoMATH-1462: Reproduce the infinite quantile bug
Maciej Kwidzinski [Fri, 17 Sep 2021 11:58:19 +0000 (13:58 +0200)] 
MATH-1462: Reproduce the infinite quantile bug

10 months agoJavadoc.
Gilles Sadowski [Sat, 18 Sep 2021 01:05:51 +0000 (03:05 +0200)] 
Javadoc.

10 months agoUpgrade dependency.
Gilles Sadowski [Tue, 14 Sep 2021 11:34:44 +0000 (13:34 +0200)] 
Upgrade dependency.

11 months agoPMD.
Gilles Sadowski [Wed, 1 Sep 2021 11:36:40 +0000 (13:36 +0200)] 
PMD.

11 months agoRelax tolerance (unit tests).
Gilles Sadowski [Wed, 1 Sep 2021 11:34:56 +0000 (13:34 +0200)] 
Relax tolerance (unit tests).

11 months agoSpurious "throws" clauses.
Gilles Sadowski [Wed, 1 Sep 2021 09:25:20 +0000 (11:25 +0200)] 
Spurious "throws" clauses.

11 months agoReplace algorithm used in "best list" search.
Gilles Sadowski [Wed, 1 Sep 2021 01:43:05 +0000 (03:43 +0200)] 
Replace algorithm used in "best list" search.

Although efficient in terms of evaluations, "NelderMeadTransform" fails for
some higher-dimensional test functions.

11 months agoUpgrade dependency.
Gilles Sadowski [Sat, 28 Aug 2021 01:19:57 +0000 (03:19 +0200)] 
Upgrade dependency.

11 months agoUnused "import".
Gilles Sadowski [Fri, 27 Aug 2021 18:58:27 +0000 (20:58 +0200)] 
Unused "import".

11 months agoRemove obsolete helper class for unit testing.
Gilles Sadowski [Fri, 27 Aug 2021 17:16:03 +0000 (19:16 +0200)] 
Remove obsolete helper class for unit testing.

Retries are handled by the "surefire" plugin.

11 months agoRelax expectations (unit test).
Gilles Sadowski [Fri, 27 Aug 2021 17:15:17 +0000 (19:15 +0200)] 
Relax expectations (unit test).

11 months agoFix incorrect usage of "ROSENBROCK" test function (unit tests).
Gilles Sadowski [Fri, 27 Aug 2021 16:35:47 +0000 (18:35 +0200)] 
Fix incorrect usage of "ROSENBROCK" test function (unit tests).

11 months agoFavouring the "expanded" simplex over the "reflected" one.
Gilles Sadowski [Fri, 27 Aug 2021 15:24:51 +0000 (17:24 +0200)] 
Favouring the "expanded" simplex over the "reflected" one.

This modification decreases the number of function evaluations in several
test cases. Note however that the original description of the algorithm
uses the strict inequality...

11 months agoSimplex search in higher-dimensional cases (unit test).
Gilles Sadowski [Fri, 27 Aug 2021 03:37:49 +0000 (05:37 +0200)] 
Simplex search in higher-dimensional cases (unit test).

11 months agoAdd (back) "POwELL" standard test function for optimizers.
Gilles Sadowski [Thu, 26 Aug 2021 21:56:42 +0000 (23:56 +0200)] 
Add (back) "POwELL" standard test function for optimizers.

11 months agoUse default SA setup in "SimplexOptimizerTest" (unit test).
Gilles Sadowski [Thu, 26 Aug 2021 00:05:15 +0000 (02:05 +0200)] 
Use default SA setup in "SimplexOptimizerTest" (unit test).

A single additional search finds the optimum of the test functions.

11 months agoMATH-1622: Simulated annealing entails at least one additional search.
Gilles Sadowski [Wed, 25 Aug 2021 23:39:46 +0000 (01:39 +0200)] 
MATH-1622: Simulated annealing entails at least one additional search.

Also ensure that the "best list" contains at least two points.

11 months agoInput files for "SimplexOptimizerTest" (unit tests).
Gilles Sadowski [Tue, 24 Aug 2021 23:51:34 +0000 (01:51 +0200)] 
Input files for "SimplexOptimizerTest" (unit tests).

11 months agoMATH-1622: Simulated annealing variant of "NelderMeadTransform".
Gilles Sadowski [Tue, 24 Aug 2021 23:50:28 +0000 (01:50 +0200)] 
MATH-1622: Simulated annealing variant of "NelderMeadTransform".

11 months agoChange how simulated annealing affects the transformed simplex (cf. MATH-1622).
Gilles Sadowski [Tue, 24 Aug 2021 13:39:52 +0000 (15:39 +0200)] 
Change how simulated annealing affects the transformed simplex (cf. MATH-1622).

Compared with commit 97462b1a1b6f64ab10e06db331d5b6762d979aab, this commit is
more consistent with assumptions of the original (non-hybridized) algorithm.

11 months agoUseless local variable.
Gilles Sadowski [Tue, 24 Aug 2021 02:09:42 +0000 (04:09 +0200)] 
Useless local variable.

11 months agoInput files for "SimplexOptimizerTest" (unit tests).
Gilles Sadowski [Mon, 23 Aug 2021 23:28:43 +0000 (01:28 +0200)] 
Input files for "SimplexOptimizerTest" (unit tests).

11 months agoMATH-1622: Simulated annealing variant of "MultiDirectionalTransform".
Gilles Sadowski [Mon, 23 Aug 2021 23:18:16 +0000 (01:18 +0200)] 
MATH-1622: Simulated annealing variant of "MultiDirectionalTransform".

11 months agoUpdate exception fr locale to match changes to en locale
Alex Herbert [Mon, 23 Aug 2021 06:40:55 +0000 (07:40 +0100)] 
Update exception fr locale to match changes to en locale

11 months agoMATH-1627: Throw an exception when column or row sums are zero.
Alex Herbert [Sun, 22 Aug 2021 20:43:27 +0000 (21:43 +0100)] 
MATH-1627: Throw an exception when column or row sums are zero.

11 months agoRemove incorrect localization format for zero exception
Alex Herbert [Sun, 22 Aug 2021 20:30:01 +0000 (21:30 +0100)] 
Remove incorrect localization format for zero exception

11 months agoFix localization formats used by ZeroException.
Alex Herbert [Sun, 22 Aug 2021 20:29:29 +0000 (21:29 +0100)] 
Fix localization formats used by ZeroException.

The ZeroException preprends zero to the arguments. The {0} corresponds
to zero. All arguments to be formatted must start at {1}.

11 months agoSpurious "throws" clauses.
Gilles Sadowski [Sun, 22 Aug 2021 01:46:25 +0000 (03:46 +0200)] 
Spurious "throws" clauses.

11 months agoRedundant inner class.
Gilles Sadowski [Sun, 22 Aug 2021 01:28:37 +0000 (03:28 +0200)] 
Redundant inner class.

11 months agoMerge branch 'master' of https://gitbox.apache.org/repos/asf/commons-math
Gilles Sadowski [Sun, 22 Aug 2021 00:32:10 +0000 (02:32 +0200)] 
Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-math

11 months agoUpdate script for visual check of "SimplexOptimizerTest" debugging output.
Gilles Sadowski [Sun, 22 Aug 2021 00:30:01 +0000 (02:30 +0200)] 
Update script for visual check of "SimplexOptimizerTest" debugging output.

Allow displaying negative values of the objective function.

11 months agoAdapt input files for "SimplexOptimizerTest" (unit tests).
Gilles Sadowski [Sun, 22 Aug 2021 00:14:53 +0000 (02:14 +0200)] 
Adapt input files for "SimplexOptimizerTest" (unit tests).

The current tests are "baseline" (2D) cases.
Further work should check degradation with increased dimensionality.

11 months agoRelax expected number of evaluations (unit test).
Gilles Sadowski [Sat, 21 Aug 2021 23:10:04 +0000 (01:10 +0200)] 
Relax expected number of evaluations (unit test).

Optimization is sensitive to the change from "AccurateMath" to "Math"
for computing the "pow" function used in "TestFunction.SUM_POW".

11 months agoAdd variance tests for zero weights
Alex Herbert [Sat, 21 Aug 2021 09:04:49 +0000 (10:04 +0100)] 
Add variance tests for zero weights

Update javadoc for the behaviour when input weights are zero.

This issue was found when checking the sonar report for the variance
class which has a potential divide by zero if the weights sum to zero.

11 months agoCorrect verification of zero length values and weights
Alex Herbert [Sat, 21 Aug 2021 08:58:13 +0000 (09:58 +0100)] 
Correct verification of zero length values and weights

This bug was found when checking the sonar report for the variance class
which uses MathArrays.verifyValues.

11 months agosonar fix: Handle variance=0 in skewness computation for input array
Alex Herbert [Sat, 21 Aug 2021 08:11:05 +0000 (09:11 +0100)] 
sonar fix: Handle variance=0 in skewness computation for input array

11 months agosonar fix: Ensure checkFeasableCount is not negative.
Alex Herbert [Sat, 21 Aug 2021 07:16:20 +0000 (08:16 +0100)] 
sonar fix: Ensure checkFeasableCount is not negative.

Change loop condition to 'i <= checkFeasableCount' from 'i <
checkFeasableCount + 1'

This ensures the loop to identify a new feasible column (RealMatrix
arxk) always executes at least once even with checkFeasibleCount at the
limit of 0 or Integer.MAX_VALUE.

11 months agoJavadoc typo
Alex Herbert [Fri, 20 Aug 2021 21:23:58 +0000 (22:23 +0100)] 
Javadoc typo

11 months agoOnly restore interrupted state if necessary
Alex Herbert [Fri, 20 Aug 2021 20:19:23 +0000 (21:19 +0100)] 
Only restore interrupted state if necessary

11 months agoJavadoc typo
Alex Herbert [Fri, 20 Aug 2021 12:43:59 +0000 (13:43 +0100)] 
Javadoc typo

11 months agoSonar fix: restore thread interrupted state
Alex Herbert [Fri, 20 Aug 2021 12:38:10 +0000 (13:38 +0100)] 
Sonar fix: restore thread interrupted state

11 months agoSimplify data format for "SimplexOptimizerTest" (randomized) input.
Gilles Sadowski [Fri, 20 Aug 2021 10:51:09 +0000 (12:51 +0200)] 
Simplify data format for "SimplexOptimizerTest" (randomized) input.

This commit also makes the following changes (unit tests):
 * Add/remove/rename/rewrite test functions.