Commit Graph

279 Commits

Author SHA1 Message Date
aherbert b9209b212a sonarfix: Avoid c-style array declarations 2022-10-13 17:49:10 +01:00
aherbert 5f3af10635 sonarfix: Do not use changes as a loop counter 2022-10-13 17:49:10 +01:00
aherbert f916fba364 Rename local variable to avoid hiding class field 2022-10-13 17:49:10 +01:00
aherbert 1df6c402c1 Remove unecessary cast to double 2022-10-13 17:49:10 +01:00
aherbert 6ea87d0adc sonarfix: Remove transient keyword from non-Serializable class 2022-10-13 17:49:10 +01:00
aherbert 6969438fda Remove use of modulus to detect odd/even
Use the lowest bit to detect the sign.
2022-10-13 16:49:11 +01:00
aherbert b0d0973fd9 Move legacy flaky tests into a separate execution
This can increase the rerunFailingTestsCount to improve robustness of
the test suite.
2022-10-13 16:36:11 +01:00
aherbert 285838bb6c Increase test point tolerance
This test is flaky and requires more than 3 repeats to pass at the
previous tolerance level.
2022-10-13 16:36:11 +01:00
aherbert 9545777694 Update test to move towards the previously found optimum 2022-10-13 16:36:11 +01:00
aherbert 4e2457cb36 Better initial guess for the circle centre 2022-10-13 16:36:11 +01:00
aherbert a80eefc21a Update the CircleProblem to use the latest commons RNG objects 2022-10-13 16:36:11 +01:00
aherbert 45e48f9d97 Update sampling test
Use faster and more robust RNG. Add better error tolerance.
2022-10-13 14:48:32 +01:00
aherbert fed7dd881b Make constructor private and class final
Suppress warnings on unchecked cast and documented expected usage of the
object array.
2022-10-13 14:19:15 +01:00
aherbert 83d9e3ab39 Remove use of Double constructor 2022-10-13 14:05:39 +01:00
aherbert b69aec0dff Remove use of deprecated class 2022-10-13 13:59:27 +01:00
aherbert 86c703f3af Update changes report configuration to allow component reports
Remove configuration that is a duplicate of commons-parent.
2022-10-13 13:08:39 +01:00
aherbert 7b18e4f676 Reorder properties to match commons RNG parent.
Update commons.module.name to commons.automatic.module.name
2022-10-13 12:59:51 +01:00
aherbert 2ceab60e7a Update spotbugs 4.3.0 to CP 4.7.2.0 2022-10-13 12:44:37 +01:00
aherbert f142596f1a Fix checkstyle for UnnecessaryParentheses 2022-10-13 12:41:54 +01:00
aherbert 5a8234a2fe Remove trailing whitespace 2022-10-13 11:38:37 +01:00
aherbert a8d392580d Use diamond operator 2022-10-13 11:36:34 +01:00
aherbert 93e3ee4b78 Formatting. Remove empty lines before closing curly bracket. 2022-10-13 11:04:55 +01:00
aherbert bc9e8bd272 Update fixed seed test
Use random seed and allow test reruns to pass the sampler.
2022-10-13 11:00:09 +01:00
Gilles Sadowski 0217542162 Javadoc. 2022-08-20 02:43:51 +02:00
rednikeeg 01ba89bf26 MATH-1647: Enforce precondition (index must be larger than 0). 2022-08-20 02:34:44 +02:00
Gilles Sadowski 3c1c92d3eb MATH-1589: Remove spurious "throws" clause. 2022-08-12 17:34:55 +02:00
aherbert 1119bdbdef Optimise bicubic polynomial
Remove computation of products and sums where one factor is zero.

Avoid computation of products where one factor is one.

Use static functions where applicable.
2022-07-27 16:28:52 +01:00
Gilles Sadowski 9946ec4e22 Use MathJax. 2022-07-27 15:49:14 +02:00
amoscatelli 8e6dee5958 MATH-1648: Derivatives for "BicubicInterpolatingFunction". 2022-07-27 15:42:53 +02:00
Gilles Sadowski f94991f224 MATH-1589: Remove spurious "throws" clause. 2022-07-20 14:48:00 +02:00
aherbert 0bf33a4fc1 Use Complex.ZERO.
This does not change the equals comparison. Note that this will not
detect sign differences, e.g. (0.0, 0.0) == (-0.0, 0.0) and a tolerance
may be required for more robustness.
2022-07-15 17:28:33 +01:00
aherbert 64e2818924 Use complex multiply by scalar 2022-07-15 17:17:40 +01:00
aherbert 294589d7b4 Correct javadoc 2022-06-07 15:39:02 +01:00
aherbert 8ffc31a0fe Use message supplier 2022-06-07 15:38:40 +01:00
aherbert 5a536c851a Fix test resource file column descriptions 2022-06-07 15:31:33 +01:00
aherbert 4e3d62a289 Enable jacoco plugin using the commons parent profile 2022-06-07 13:38:45 +01:00
aherbert 2f8b4da5b9 Correct javadoc tags to allow build on JDK 17
Remove heading tags
Correctly close paragraph tags
2022-06-07 12:58:37 +01:00
Gilles Sadowski f067b2b4ba MATH-1644: Prevent computed probability from exceeding 1. 2022-04-09 14:07:03 +02:00
Gilles Sadowski 57dda85533 HTML5 javadoc comments.
As of Java 11, the "javadoc" command requires compliance.
2022-03-03 12:02:58 +01:00
Gilles Sadowski c5ea177934 Use specialized "pow" function. 2022-01-27 15:09:34 +01:00
Gilles Sadowski 74a851b611 MATH-1371: Elkan's enhancement to "K-Means" algorithm.
Original implementation is a old PR provided by Artem Barger.
Updated and changed to pass the code style checks.

I did not review how this algorithm departs from the other
implementations available in the same package, and whether
some other design could minimize duplicate codes (but it
would have been a pity to drop a potential performance
improvement).
A thorough examination should be considered, when tackling
the refactoring of the "clustering" package.

Closes #35.
2022-01-24 19:57:29 +01:00
Gilles Sadowski 134d731a6b Unused "import". 2022-01-24 18:12:52 +01:00
Gilles Sadowski f862efe4c6 MATH-1589: Remove spurious "throws" clause. 2022-01-24 05:39:59 +01:00
Gilles Sadowski c6b4ca908c MATH-1640: Do not try to outguess the caller. 2022-01-22 18:53:17 +01:00
Arturo Bernal 645d85a8c7 Avoid array declarations written in C-style syntax and replace it with java.
Closes #202.
2022-01-20 18:44:07 +01:00
Gilles Sadowski 426545d1db Relax tolerance (unit test). 2022-01-19 05:19:47 +01:00
Gilles Sadowski ae6ceeadd1 Replace calls to deprecated classes and methods (unit tests). 2022-01-18 04:37:54 +01:00
Gilles Sadowski d81b5e921e Replace "CMAESOptimizer.Sigma" with "Sigma". 2022-01-17 02:37:20 +01:00
Gilles Sadowski 336811dff5 Relax tolerance (unit tests). 2022-01-13 15:53:20 +01:00
Gilles Sadowski 7bb6190584 Remove spurious file.
Thanks to Karl-Philipp Richter.

Closes #201.
2022-01-13 15:50:22 +01:00