Commit Graph

7040 Commits

Author SHA1 Message Date
Gilles Sadowski 22572574d4 Reduce code duplication. 2020-07-30 23:31:27 +02:00
Gilles Sadowski 802058f4ee Remove spurious "throws" clauses, and other nits. 2020-07-30 22:50:07 +02:00
r08922129 fe29577cdb MATH-1551: Add Weighted percentile features 2020-07-31 00:23:18 +08:00
Gilles Sadowski 90ea1c9218 Add "<defaultGoal>" in order to have CheckStyle run by Travis.
Move CheckStyle configuration files.
2020-07-29 20:18:41 +02:00
Gilles Sadowski b1c0b4db51 MATH-1554: Remove package "o.a.c.math4.geometry". 2020-07-29 01:08:43 +02:00
Gilles Sadowski 0e3b77d76c Nit (unit test). 2020-07-29 00:02:59 +02:00
Gilles Sadowski 3d2b2107b5 Add unit tests.
Failing tests are disabled.
2020-07-28 23:23:24 +02:00
Gilles Sadowski 2470c3ff28 Factor out utilities that are useful for other unit test classes too. 2020-07-28 13:50:22 +02:00
Gilles Sadowski d0ed03c953 Use "final" (and other nits). 2020-07-21 19:52:04 +02:00
Gilles Sadowski 11b0e96cf4 Constant is an implementation detail. 2020-07-21 19:34:44 +02:00
Mohammad Rezaei 9e24ff70a7 Use static final int for IEEE exponent shift constant.
Closes #156.
2020-07-21 19:15:10 +02:00
Gilles Sadowski 3ed7faba1b Unused "import" statement. 2020-07-21 15:51:19 +02:00
Gilles Sadowski 321c689ceb Checkstyle.
Closes #155.
2020-07-21 15:50:52 +02:00
Gilles Sadowski e9389912d5 Javadoc. 2020-07-21 12:18:20 +02:00
Gilles Sadowski 91207d4c6d Track changes. 2020-07-21 12:18:07 +02:00
Mohammad Rezaei d23485fb15 Scale constants before running simplex algorithm. Fixes MATH-1549. 2020-07-20 15:49:42 -04:00
Mohammad Rezaei 84890c9409 Standardize constants before running simplex algorithm. Fixes MATH-1549. 2020-07-16 20:48:36 -04:00
Gilles Sadowski 4108f5f35e MATH-1549: Added unit test based on the demo code provided on the report page.
Unit test is set to "@Ignore" as the issue is still present.
2020-07-14 14:41:42 +02:00
Gilles Sadowski 849d551b8a Track changes. 2020-06-29 00:51:55 +02:00
Gilles Sadowski 824d92fac6 Condition does not apply. 2020-06-29 00:22:19 +02:00
Gilles Sadowski ed4817c730 MATH-1548: Remove methods redundant with functionality defined in "NeuronSquareMesh2D". 2020-06-29 00:22:19 +02:00
Gilles Sadowski 28e5b802fe MATH-1548: Move standard quality measures of a SOM into class "NeuronSquareMesh2D".
All these indicators are usually computed in order to evaluate the quality of a SOM:
Computing them separately is inefficient when the number of samples becomes large.
2020-06-29 00:22:19 +02:00
Gilles Sadowski 9cbf1d1844 MATH-1547: Remove "findBest" and "findBestAndSecondBest" methods from "MapUtils".
Use equivalent functionality from class "MapRanking".
2020-06-29 00:22:19 +02:00
Gilles Sadowski 960ba5322b MATH-1547: Ranking of any number of the best matching units of a neural network. 2020-06-29 00:22:19 +02:00
Gilles Sadowski 24e2c246ce Formatting (unit test). 2020-06-29 00:22:19 +02:00
PeterAlfredLee 15dad0b047 Use stream API in place of explicit loop.
Closes #154.
2020-06-29 00:18:45 +02:00
B Sharma 0d937abf8c Simplify "instanceof" usage.
Closes #146.
2020-06-22 12:27:58 +02:00
XenoAmess bfa5b60eff MATH-1541: Loop early exit.
Closes #147.
2020-06-08 12:01:16 +02:00
XenoAmess 2ba76c2573 MATH-1544: Redundant argument.
Closes #150.
2020-06-08 11:48:30 +02:00
XenoAmess 183a8e3490 MATH-1542: Redundant check.
Closes #148.
2020-06-08 11:26:39 +02:00
XenoAmess 70a25eee5f MATH-1545: Follow best practice when checking ordering.
Closes #152.
2020-06-08 11:17:17 +02:00
XenoAmess 5b020dba27 MATH-1543: Avoid exception swallowing.
Closes #149.
2020-06-08 11:12:54 +02:00
Gilles Sadowski d8ad317f94 Formatting.
Closes #142.
2020-06-06 12:50:15 +02:00
XenoAmess e34ea727ca use subList().clear instead of a loop of remove(0) 2020-06-06 12:27:29 +02:00
XenoAmess ba8a26705e Use "addAll" instead of loop.
Closes #141.
2020-06-06 12:25:07 +02:00
Gilles Sadowski 5a8145a9df Formatting (unit test).
Closes #140.
2020-06-06 12:04:44 +02:00
XenoAmess 6af45f83ce clean-up in tests 2020-06-04 23:10:32 +08:00
Gilles Sadowski 715d89d262 MATH-1537: Clean-up.
Closes #137, closes #138, closes #139.
2020-06-03 12:05:18 +02:00
Gilles Sadowski 26d7e55974 Userguide. 2020-06-03 11:59:12 +02:00
Gilles Sadowski d5ffaf27c7 Javadoc. 2020-06-03 11:59:12 +02:00
XenoAmess 5f9bbadbb2 fix_typos 2020-06-03 11:59:12 +02:00
XenoAmess 2ae97f4038 delete unused imports 2020-06-03 11:32:12 +02:00
Gilles Sadowski f623bcf880 Javadoc. 2020-06-03 11:15:33 +02:00
XenoAmess 84f08fce9f refine javadoc 2020-06-03 01:47:04 +08:00
Gilles Sadowski 67aea22b08 MATH-1535: Recurring issue with method "fixTies" (WIP).
Current code is too fragile:
 * Adding "jitter" does not work reliably.
 * Changing the seed of the RNG make unit tests fail.

This commit includes:
 * Changing from "MathInternalError" to "MaxCountExceededException".
 * Using named variables for hard-coded values.
 * Adding unit tests (set to "@Ignore" to let the build pass).
 * Handling infinite values to avoid creating NaN values.
2020-05-29 23:00:47 +02:00
Gilles Sadowski 9f778c4135 Formatting nit (unit test). 2020-05-29 10:22:36 +02:00
Gilles Sadowski 31be9f198c Stricter tolerance (unit test). 2020-05-27 02:09:02 +02:00
Gilles Sadowski de70e0170e MATH-1534: Add unit test. 2020-05-27 02:03:31 +02:00
Gilles Sadowski 9f17f6de64 MATH-1534: Use value that probably conforms to the original intent.
Thanks to Christoph Läubrich.
2020-05-27 01:52:14 +02:00
Alex Herbert 52b374d85e Renormalise EOL 2020-05-26 13:46:43 +01:00