Commit Graph

5641 Commits

Author SHA1 Message Date
Luc Maisonobe 99cbfc28e2 Removed static imports. 2015-11-03 15:58:57 +01:00
Luc Maisonobe a8bf634a5f Spurious semicolon. 2015-11-03 15:55:25 +01:00
Luc Maisonobe e3118728d1 Replaced implementation types.
ArrayList -> List
TreeMap   -> SortedMap
2015-11-03 15:53:03 +01:00
Luc Maisonobe a96ee63181 Combined nested if statements. 2015-11-03 15:49:23 +01:00
Luc Maisonobe f0c6d3c0c5 Fixed inconsistent synchronization. 2015-11-03 12:34:07 +01:00
Luc Maisonobe be8563a6c5 Fixed findbugs warnings.
The warnings were related to compareTo implementations not handling -0.0
or NaN properly (cf
<http://findbugs.sourceforge.net/bugDescriptions.html#CO_COMPARETO_INCORRECT_FLOATING>).
2015-11-03 12:21:08 +01:00
Luc Maisonobe 9672399666 Replaced use of inefficient keyset with use of entryset. 2015-11-03 12:12:19 +01:00
Luc Maisonobe b6c2d697ab Roll back clirr plugin version to 2.6.1 as 2.7 triggered an exception. 2015-11-03 12:06:26 +01:00
Luc Maisonobe 04454fc009 Fixed findbugs warning.
When defining compareTo, we should also define equals and hashcode.
2015-11-03 11:23:46 +01:00
Luc Maisonobe b72d44673c 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 11:20:47 +01:00
Luc Maisonobe fae8d86872 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 11:18:59 +01:00
Luc Maisonobe 8c2aa686b9 Removed useless object. 2015-11-03 11:17:34 +01:00
Luc Maisonobe da77465fc1 Updated parent pom and plugins versions to latest available. 2015-11-03 11:16:49 +01:00
Luc Maisonobe ee7b3a5827 reactivated redundant modifiers needed for serialization. 2015-11-02 16:03:52 +01:00
Luc Maisonobe 254783521b reintroduced modifiers needed for serialization. 2015-11-02 15:47:31 +01:00
Luc Maisonobe 0a0c5aa391 Fixed hidden field warning. 2015-11-02 15:24:22 +01:00
Luc Maisonobe 2114da384a 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:23:30 +01:00
Luc Maisonobe a07663cfae Fixed missing types in javadoc. 2015-11-02 15:15:15 +01:00
Luc Maisonobe 635c35be74 Use a fixed seed to avoid random test failure. 2015-11-02 13:39:21 +01:00
Gilles 2f782bc259 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 16:11:20 +01:00
Otmar Ertl 5f03f0d702 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:40:24 +01:00
Thomas Neidhart 40f35da565 [MATH-1283] Fixed Gamma#gamma function for values smaller than -20. Thanks to Jean Noel Delavalade 2015-10-22 22:32:50 +02:00
Thomas Neidhart 0dd621687d [MATH-1237] Fix javadoc of methods floorDiv,floorMod in FastMath. Thanks to Ken Williams. 2015-10-19 22:01:50 +02:00
Thomas Neidhart 5511eec3b4 [MATH-837] Support aggregation of any kind of StatisticalSummary in AggregateSummaryStatistics. 2015-10-19 21:36:15 +02:00
Luc Maisonobe 9f1368715b Avoid slight inaccuracies at the end of events detections steps. 2015-10-02 17:34:15 +02:00
Gilles 5e4739fb72 MATH-1279
Check precondition.
Thanks to David Georg Reichelt for the report.
2015-09-30 14:41:47 +02:00
Luc Maisonobe 4025b62c7d Fixed checkstyle warning about parentheses. 2015-09-21 11:21:23 +02:00
Gilles 4f1d85c0bf Update "changes.xml". 2015-09-20 21:46:57 +02:00
Gilles f13693fdc3 MATH-1278
Deep copy of "Neuron", "Network" and "NeuronSquareMesh2D".
2015-09-20 21:45:31 +02:00
Gilles 78b9d819a7 Merge branch 'MATH_3_X' of https://git-wip-us.apache.org/repos/asf/commons-math into MATH_3_X 2015-09-20 21:35:21 +02:00
Otmar Ertl df1db29ab4 [MATH-1276] Improved performance of sampling and inverse cumulative
probability calculation for geometric distributions.
2015-09-20 21:01:25 +02:00
Otmar Ertl 7fe8a8aff6 extended GeometricDistributionTest to test inverse cumulative probability function also at point 1 2015-09-20 20:52:17 +02:00
Otmar Ertl 6c53783ea0 optimization of probability, logProbability, and cumulativeProbability methods in GeometricDistribution by precalculation of log(1-p) and log(p) 2015-09-20 20:49:38 +02:00
Otmar Ertl ecb52999cb 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:46:41 +02:00
Gilles bd988f8342 Unused variable. Typo. 2015-09-20 19:13:04 +02:00
Otmar Ertl 81ce1b183a MATH-1277: Fixed incorrect Kendall's tau coefficient calculation due to
internal integer overflow. Thanks to Marc Rosen.
2015-09-20 10:09:46 +02:00
Gilles c1c1a84291 Fixed SOFM U-matrix (individual distances)
Some "diagonal" pixels were overwritten.
2015-09-19 14:46:56 +02:00
Gilles 88cee6d7b3 Merge branch 'MATH_3_X' of https://git-wip-us.apache.org/repos/asf/commons-math into MATH_3_X 2015-09-18 00:09:23 +02:00
Gilles 7929e10a8f MATH-1270
Visualization of quantization error.
2015-09-18 00:07:18 +02:00
Otmar Ertl 1c9c43c1d4 MATH-1274: representation of Kolmogorov-Smirnov statistic as integral
value
2015-09-16 20:34:46 +02:00
Luc Maisonobe 1cdaba9d5a Removed old print statements from tests. 2015-09-11 20:33:02 +02:00
Qualtagh 18310ed96f Added negative zero support in FastMath.pow.
JIRA: MATH-1273
Github: closes #16
2015-09-11 19:55:45 +02:00
Luc Maisonobe ace087b4ed Fixed checkstyle warnings. 2015-09-11 19:52:20 +02:00
Gilles 74515ba6aa Update of "changes.xml" 2015-09-11 11:36:48 +02:00
Gilles 8025da1719 Merge branch 'MATH_3_X' of https://git-wip-us.apache.org/repos/asf/commons-math into MATH_3_X 2015-09-11 11:26:32 +02:00
Luc Maisonobe 34b9fd0427 improved user guide on FiniteDifferencesDifferentiator. 2015-09-11 10:21:26 +02:00
Gilles d270d387ce Merge branch 'MATH_3_X' of https://git-wip-us.apache.org/repos/asf/commons-math into MATH_3_X 2015-09-11 00:55:44 +02:00
Gilles 012c15ce4d MATH-1270
SOFM visualization: Smoothed data histogram.
2015-09-11 00:55:00 +02:00
Gilles d7f6c8da95 MATH-1270
SOFM visualization: Topographic error.
2015-09-11 00:54:36 +02:00
Gilles afac1f05cd MATH-1270
SOFM visualization: Hit histogram.
2015-09-11 00:53:50 +02:00