322 Commits

Author SHA1 Message Date
Gary Gregory
1b47b24a55 Use String#isEmpty() 2023-11-28 11:17:21 -05:00
Gilles Sadowski
d961ff2f4d Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-math 2023-11-22 02:26:03 +01:00
Gilles Sadowski
aaa39b8fd5 MATH-1666: Hide "LineSearch". 2023-11-22 02:25:27 +01:00
Alex Herbert
6b97a087dd Add serial version UID to fix compile warnings 2023-11-21 19:08:42 +00:00
Alex Herbert
b68b2601ab Move auxilary class to static inner class 2023-11-21 19:05:13 +00:00
Alex Herbert
bc04683e4d Remove empty arrays to varargs reflection methods 2023-11-21 18:58:51 +00:00
Alex Herbert
68a21f7fb1 Access static field in a static way 2023-11-21 18:53:41 +00:00
Alex Herbert
3620d60718 Checkstyle: unnecessary parentheses 2023-11-21 18:40:59 +00:00
Alex Herbert
e49cabff8b Checkstyle: redundant public modifier 2023-11-21 18:34:51 +00:00
Alex Herbert
cfd7a36313 Checkstyle: private final class should be final 2023-11-21 18:33:47 +00:00
Gary Gregory
fc92ca62be Fix illegal Javadoc tags (Java 17) 2023-11-05 09:09:47 -05:00
sebbASF
95b244cb1f
Use same artifactId prefix as modules (#235)
Changing the artifactId would normally require a corresponding change of package. But in this case, the parent does not include any Java code, so we should be OK.
2023-09-21 13:44:49 +01:00
aherbert
8ea48b398e Correct code example 2023-09-07 18:03:18 +01:00
Gilles Sadowski
2fb5f6aa95 MATH-1658: Enable passing a "ConvergenceChecker" as "OptimizationData". 2023-06-29 23:53:46 +02:00
Gary Gregory
f65a0f936c Spelling 2023-06-24 13:40:56 -04:00
Gary Gregory
fda18906ac Javadoc, in-line comment, and messages typos 2023-05-19 09:06:16 -04:00
Gilles Sadowski
ece74cff78 MATH-1659: Reduce verbosity of "surefire" plugin. 2023-04-05 20:04:29 +02:00
Gilles Sadowski
56844842a8 MATH-1657: Provide (protected) accessor to the objective function.
Deprecated method "computeObjectiveValue" (equivalent functionality).

Thanks to François Laferrière for the suggestion.
2023-04-05 16:41:24 +02:00
Gilles Sadowski
6c493a4f20 MATH-1589: Remove spurious "throws" clause. 2023-03-06 02:30:45 +01:00
Cyril de Catheu
5f76f8384d MATH-1654: optimize Array2DRowRealMatrix getEntry 2023-03-04 23:58:20 +01:00
Gilles Sadowski
585b04c22e Javadoc. 2022-12-26 03:09:37 +01:00
Gilles Sadowski
8e5e8bb65b Reset "-SNAPSHOT" suffix in "<version>" tag.
Next version is still "4.0", with "0" as minor number, because last release was "beta".
2022-12-22 10:35:53 +01:00
Gilles Sadowski
506d4bea15 Merge branch '4.0-beta1-release' 2022-12-22 08:28:53 +01:00
Alex Herbert
0e3634108a Add a docs module to create aggregate reports
The site pages have been updated to link to the aggregate javadoc
report.
2022-12-21 23:36:47 +00:00
Gilles Sadowski
81171d4071 Set correct version for all modules. 2022-12-13 18:34:33 +01:00
Alex Herbert
9795036191 Fix javadoc <p> tag 2022-12-03 19:09:37 +00:00
Alex Herbert
870926d389 Disable PMD in legacy module
Currently the build reports 4629 PMD violations.
2022-12-03 19:09:37 +00:00
Alex Herbert
a97523700a Compare candidate to all list points 2022-12-03 19:09:37 +00:00
aherbert
ab9b0b0c2d Use a LinkedHashMap to respect the order of the input data
Note: The int/real enumerated distributions do not specify that the
input must be sorted. This change supports the legacy behaviour enforced
by the unit test which is assuming input values are processed in
encounter order (which happens to be sorted).

Given int and double have a natural ordering it may be better to update
the distribution to sort input values. However this would contradict the
enumerated distribution which respects the input order of the list used
in the constructor.
2022-12-02 15:08:03 +00:00
aherbert
abb32b5a62 Use method reference for the sampler 2022-12-02 13:56:34 +00:00
aherbert
9fcd3885dc Use Map.merge 2022-12-02 13:54:50 +00:00
aherbert
7ed772e474 Use survival probability 2022-12-02 13:41:47 +00:00
aherbert
6d767220ed Use method reference to create a sampler 2022-12-02 13:39:36 +00:00
aherbert
91b0bb3d30 Update to use commons.module.name (consitent with CP) 2022-12-02 11:50:28 +00:00
aherbert
654697c048 Remove "CombinatoricsUtils" class
Functionality is in "Commons Numbers" combinatorics package.
2022-11-03 12:05:40 +00:00
aherbert
fc239a64be Fix overflow bug in stirlingS2 when n > 64, k = 2 2022-10-31 11:08:52 +00:00
aherbert
d617a730aa Convert test to JUnit 5 2022-10-31 11:02:37 +00:00
aherbert
c60db86167 Remove unused cached binomial coefficients from test 2022-10-31 10:35:05 +00:00
Arturo Bernal
199648a8a1
MATH-1569: Manual array copy. (#219) 2022-10-25 21:34:17 +01:00
Arturo Bernal
3f043ba7e1
Improved with better formatting. (#225) 2022-10-22 22:58:20 +01:00
Alex Herbert
3ddfbd6cf7 Remove extra addition character 2022-10-22 07:57:36 +01:00
aherbert
aedec76b0b sonarfix: remove useless parentheses 2022-10-13 17:49:10 +01:00
aherbert
17ca771e10 sonarfix: remove unnecessary boolean 2022-10-13 17:49:10 +01:00
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