Commit Graph

5755 Commits

Author SHA1 Message Date
Luc Maisonobe 1f6c125267 Set up a customized configuration for PMD. 2015-11-03 22:09:06 +01:00
Luc Maisonobe 3e0ffb9f52 Added missing braces. 2015-11-03 22:08:38 +01:00
Luc Maisonobe 2272f5cce7 Added missing javadoc. 2015-11-03 22:06:34 +01:00
Luc Maisonobe ab908d64bf Removed static imports. 2015-11-03 21:47:50 +01:00
Luc Maisonobe 175e1b3637 Spurious semicolon. 2015-11-03 21:45:53 +01:00
Luc Maisonobe 3150dd3c7d Replaced implementation types.
ArrayList -> List
TreeMap   -> SortedMap
2015-11-03 21:45:02 +01:00
Luc Maisonobe 63a179da8b Combined nested if statements. 2015-11-03 21:43:57 +01:00
Luc Maisonobe 1130658baf Fixed findbugs warning.
When defining compareTo, we should also define equals and hashcode.
2015-11-03 10:57:42 +01:00
Luc Maisonobe 3f68627209 Avoid a false positive findbugs warning.
Findbugs is confused by constant 1.570796251296997 which is a
intentionally slightly offset from PI/2 as per Cody Waite arguments
reduction.
2015-11-03 10:45:35 +01:00
Luc Maisonobe 93f8d0e237 Avoid a false positive findbugs warning.
The source code tests an angle using "angle > (FastMath.PI - 1.0e-10)".
As the compiler does the subtraction of the constants directly, findbugs
complains about a "Rough value of Math.PI found: 3.141592653489793".
2015-11-03 10:34:38 +01:00
Luc Maisonobe f13954235f Removed useless object. 2015-11-03 10:25:10 +01:00
Luc Maisonobe e8556e80e9 Updated parent pom and plugins versions to latest available. 2015-11-03 10:23:39 +01:00
Luc Maisonobe 8e0b98bf6b reintroduced modifiers needed for serialization. 2015-11-02 16:20:54 +01:00
Luc Maisonobe 026fce5c5f Fixed hidden field warning. 2015-11-02 15:09:43 +01:00
Luc Maisonobe bf7e9d505a Fixed checkstyle warnings.
These warnings correspond to redundant modifiers (public, static, ...).
They are identified by recent versions of checkstyle, in particular the
one shipped with Eclipse. They are not detected by our
maven-checkstyle-plugin yet because it is not the latest one and still
depends on an older version of checkstyle.
2015-11-02 15:08:01 +01:00
Luc Maisonobe e10556ec68 Fixed missing types in javadoc. 2015-11-02 14:31:38 +01:00
Luc Maisonobe ad12d97cbb Use a fixed seed to avoid random test failure. 2015-11-02 13:43:09 +01:00
Gilles fdee2718dc Backport tracking. 2015-10-31 16:15:35 +01:00
Gilles fa1aa44c76 MATH-1286
New "Range" inner class that holds a field with the number of elements of the range.
An instance of this class replaces the anonymous class returned by the "range" method.
2015-10-31 15:36:35 +01:00
Otmar Ertl 8ed2209b1f MATH-1285: replaced inappropriate reference to MathWorld by reference to
Wikipedia's article about Zipf's law, thanks to  Pim van der Hoorn for
reporting this issue
2015-10-27 20:33:39 +01:00
Thomas Neidhart 9e0c5ad4b3 [MATH-1283] Fixed Gamma#gamma function for values smaller than -20. Thanks to Jean Noel Delavalade 2015-10-22 22:26:47 +02:00
Thomas Neidhart 260a4392a8 [MATH-1237] Forgot one occurrence of the javadoc error. 2015-10-19 22:03:25 +02:00
Thomas Neidhart 435384cf13 [MATH-1237] Fix javadoc of methods floorDiv,floorMod in FastMath. Thanks to Ken Williams. 2015-10-19 21:59:13 +02:00
Thomas Neidhart e14d9ce8e3 [MATH-837] Support aggregation of any kind of StatisticalSummary in AggregateSummaryStatistics. 2015-10-19 21:41:16 +02:00
Luc Maisonobe 1b5925b563 Avoid slight inaccuracies at the end of events detections steps. 2015-10-02 17:37:01 +02:00
Gilles 66d0a9a0a0 MATH-1279
Check precondition.
Thanks to David Georg Reichelt for the report.
2015-09-30 15:01:32 +02:00
Luc Maisonobe 2aa4681cb8 Fixed checkstyle warning about parentheses. 2015-09-21 11:25:08 +02:00
Gilles 6c4e1d719f MATH-1278
Deep copy of "Neuron", "Network" and "NeuronSquareMesh2D".
2015-09-20 22:02:21 +02:00
Otmar Ertl 2fd6c8fa1e [MATH-1276] Improved performance of sampling and inverse cumulative
probability calculation for geometric distributions.
2015-09-20 20:33:41 +02:00
Otmar Ertl 4158323ee4 extended GeometricDistributionTest to test inverse cumulative
probability function also at point 1
2015-09-20 20:25:39 +02:00
Otmar Ertl 079a07fe18 optimization of probability, logProbability, and cumulativeProbability
methods in GeometricDistribution by precalculation of log(1-p) and
log(p)
2015-09-20 20:20:16 +02:00
Otmar Ertl 73351b6adb code cleanup in GeometricDistribution.java as proposed by Gilles:
* removed needless declaration of a local variable "p" with the same
value as the "probabilityOfSuccess" field
* remove needless local variable "ret" ("return" statements can be used
directly in each way of the alternatives)
2015-09-20 20:11:47 +02:00
Otmar Ertl fb0078159d MATH-1277: Fixed incorrect Kendall's tau coefficient calculation due to
internal integer overflow. Thanks to Marc Rosen.
2015-09-20 10:04:44 +02:00
Gilles 6fe2094e30 "@Override" tag
Inadvertently removed in back/forward porting gymnastics.
2015-09-19 14:57:49 +02:00
Gilles f36090e314 Fixed SOFM U-matrix (individual distances)
Some "diagonal" pixels were overwritten.
2015-09-19 14:51:51 +02:00
Gilles 924e1e9064 MATH-1270
Visualization of quantization error.
2015-09-18 00:14:39 +02:00
Otmar Ertl fb7e1e265d MATH-1274: representation of Kolmogorov-Smirnov statistic as integral
value
2015-09-16 20:18:06 +02:00
Gilles b189817a39 Update "changes.xml". 2015-09-14 02:23:38 +02:00
Gilles 8b25e786e9 Unused variable. 2015-09-14 02:20:40 +02:00
Gilles ce131449a4 MATH-1270
Various SOFM visualizations: unified distance matrix, hit histogram,
smoothed data histogram, topographic error.
2015-09-14 02:08:30 +02:00
Gilles 999761ba1b MATH-1268
API for algorithms that create some visualization of a 2D SOFM.
2015-09-14 02:07:36 +02:00
Gilles f348d34fb1 MATH-1267
Helper for finding the grid coordinates of a "Neuron" in a "NeuronSquareMesh2D".
2015-09-14 02:06:43 +02:00
Gilles cd55cbbcc5 Javadoc
Methods "divideUnsigned" and "remainderUnsigned" do not exist in Java 7.
2015-09-14 01:59:23 +02:00
Qualtagh 40f969bc9e Added negative zero support in FastMath.pow.
JIRA: MATH-1273
Github: closes #16
2015-09-11 19:47:56 +02:00
Qualtagh 8c141a1705 Added divideUnsigned and remainderUnsigned to ArithmeticUtils.
JIRA: MATH-1271
2015-09-11 18:16:35 +02:00
Luc Maisonobe 85d2568dea improved user guide on FiniteDifferencesDifferentiator. 2015-09-11 10:03:49 +02:00
Luc Maisonobe 9856f285e4 Clarified comments. 2015-09-10 15:09:20 +02:00
Luc Maisonobe 9ee68c2ff2 Typo. 2015-09-10 13:29:25 +02:00
Luc Maisonobe d93c95d530 Pow function re-implementation has been backported to 3.6. 2015-09-10 10:39:02 +02:00
Luc Maisonobe 2edae4ddd7 Typos. 2015-09-10 10:34:33 +02:00