commons-math.git
7 years agoMerge branch 'pow-reimplementation' into h10-builds h10-builds 100/head
Luc Maisonobe [Fri, 15 May 2015 16:26:23 +0000 (18:26 +0200)] 
Merge branch 'pow-reimplementation' into h10-builds

Conflicts:
src/main/java/org/apache/commons/math4/util/FastMath.java
src/test/java/org/apache/commons/math4/util/FastMathTest.java

7 years agoAttempt to re-implement the pow function.
Luc Maisonobe [Tue, 12 May 2015 13:08:07 +0000 (15:08 +0200)] 
Attempt to re-implement the pow function.

The attempts are motivated by platform-specific failures, which seem to
be platform-specific, and probably due to JIT optimization bugs.

7 years agoUse Double.isNaN rather than x != x in FastMath.
Luc Maisonobe [Sat, 9 May 2015 20:03:14 +0000 (22:03 +0200)] 
Use Double.isNaN rather than x != x in FastMath.

Thanks to Benedikt Ritter.

Github: closes #5.
JIRA: MATH-1222

7 years agoVersion entries must be in separate release sections
Sebb [Fri, 8 May 2015 14:39:56 +0000 (15:39 +0100)] 
Version entries must be in separate release sections

7 years agoFix test failures for FastMath.pow by preventing JIT branch optimization.
Thomas Neidhart [Thu, 7 May 2015 19:35:50 +0000 (21:35 +0200)] 
Fix test failures for FastMath.pow by preventing JIT branch optimization.

7 years agoFixed equals/hashcode contract failure for Dfp.
Luc Maisonobe [Thu, 7 May 2015 14:28:51 +0000 (16:28 +0200)] 
Fixed equals/hashcode contract failure for Dfp.

Thanks to Cyrille Artho.

7 years agoFixed wrong splitting of huge number in extended accuracy algorithms.
Luc Maisonobe [Thu, 7 May 2015 13:23:05 +0000 (15:23 +0200)] 
Fixed wrong splitting of huge number in extended accuracy algorithms.

7 years agoTesting different branching.
tn [Thu, 7 May 2015 12:35:55 +0000 (14:35 +0200)] 
Testing different branching.

7 years agoBack to regular implementation of pow.
Luc Maisonobe [Tue, 5 May 2015 16:43:31 +0000 (18:43 +0200)] 
Back to regular implementation of pow.

7 years agoFixed dummy return that created too much problems.
Luc Maisonobe [Tue, 5 May 2015 16:28:05 +0000 (18:28 +0200)] 
Fixed dummy return that created too much problems.

7 years agoFocus dummy return values.
Luc Maisonobe [Tue, 5 May 2015 16:11:27 +0000 (18:11 +0200)] 
Focus dummy return values.

7 years agoIgnore failures due to the previous change that we don't care about.
Luc Maisonobe [Tue, 5 May 2015 15:45:07 +0000 (17:45 +0200)] 
Ignore failures due to the previous change that we don't care about.

7 years agoUse special dummy values to identify pow(x,y) path without prints.
Luc Maisonobe [Tue, 5 May 2015 15:01:30 +0000 (17:01 +0200)] 
Use special dummy values to identify pow(x,y) path without prints.

Beware this is for debug purpose only. It *will* make tests fail.

7 years agoRemoved debug test.
Luc Maisonobe [Tue, 5 May 2015 14:31:11 +0000 (16:31 +0200)] 
Removed debug test.

7 years agoTesting only the values that up to now have created problems.
Luc Maisonobe [Tue, 5 May 2015 14:18:35 +0000 (16:18 +0200)] 
Testing only the values that up to now have created problems.

7 years agoRemoved print.
Luc Maisonobe [Tue, 5 May 2015 14:00:17 +0000 (16:00 +0200)] 
Removed print.

7 years agoLooking at double to long cast vs. dedicated implementation.
Luc Maisonobe [Tue, 5 May 2015 13:30:09 +0000 (15:30 +0200)] 
Looking at double to long cast vs. dedicated implementation.

7 years agoPrint double to long cast.
Luc Maisonobe [Tue, 5 May 2015 08:21:50 +0000 (10:21 +0200)] 
Print double to long cast.

7 years agoLooking more precisely at pow(+/-0.0, y).
Luc Maisonobe [Tue, 5 May 2015 07:40:18 +0000 (09:40 +0200)] 
Looking more precisely at pow(+/-0.0, y).

7 years agoPrinting some double values and their binary representation.
Luc Maisonobe [Tue, 5 May 2015 07:19:49 +0000 (09:19 +0200)] 
Printing some double values and their binary representation.

7 years agoAdded debug traces for investigating H10 builds failures.
Luc Maisonobe [Mon, 4 May 2015 19:15:10 +0000 (21:15 +0200)] 
Added debug traces for investigating H10 builds failures.

7 years agoRevert "Attempt to circumvent some errors which seem to be platform-dependent."
Luc Maisonobe [Mon, 4 May 2015 15:19:59 +0000 (17:19 +0200)] 
Revert "Attempt to circumvent some errors which seem to be platform-dependent."

This reverts commit c771c0080b08abd80418c4e88f1be3efec828f0a.

The attempt failed, the error is still present.

7 years agoAttempt to circumvent some errors which seem to be platform-dependent.
Luc Maisonobe [Mon, 4 May 2015 11:43:27 +0000 (13:43 +0200)] 
Attempt to circumvent some errors which seem to be platform-dependent.

The Jenkins build often fails on code that seems to be perfectly
correct. Failures also do no always happen so they may depend on
platform. There were similar problems a few months ago that were
probably related to JIT bugs.

This fix simply tries to do the same thing as before, but with an
earlier detection of NaN in one case, and by comparing directly the bits
representation in another case, to avoid wrong optimizations.

7 years agoFixed missing javadoc.
Luc Maisonobe [Mon, 4 May 2015 09:01:09 +0000 (11:01 +0200)] 
Fixed missing javadoc.

7 years agoAdd userguide example for integer distributions. Fix title in real distribution overview.
Thomas Neidhart [Sun, 3 May 2015 20:41:45 +0000 (22:41 +0200)] 
Add userguide example for integer distributions. Fix title in real distribution overview.

7 years agoConverters for univariate and multivariate differentiable functions.
Luc Maisonobe [Sun, 3 May 2015 17:18:09 +0000 (19:18 +0200)] 
Converters for univariate and multivariate differentiable functions.

JIRA: MATH-1143

7 years ago[MATH-964] Remove unused class PollardRho.
Thomas Neidhart [Fri, 1 May 2015 13:44:47 +0000 (15:44 +0200)] 
[MATH-964] Remove unused class PollardRho.

7 years ago[MATH-964] Remove unused class PollardRho.
Thomas Neidhart [Fri, 1 May 2015 13:44:08 +0000 (15:44 +0200)] 
[MATH-964] Remove unused class PollardRho.

7 years ago[MATH-1221] Improve performance of ZipfDistribution by caching the nth generalized...
Thomas Neidhart [Fri, 1 May 2015 12:12:44 +0000 (14:12 +0200)] 
[MATH-1221] Improve performance of ZipfDistribution by caching the nth generalized harmonic.

7 years ago[MATH-1220] Improve performance of ZipfDistribution.sample. Thanks to Otmar Ertl.
Thomas Neidhart [Fri, 1 May 2015 11:50:10 +0000 (13:50 +0200)] 
[MATH-1220] Improve performance of ZipfDistribution.sample. Thanks to Otmar Ertl.

7 years ago[MATH-1153] Improve performance of BetaDistribution#sample. Thanks to Sergei Lebedev.
Thomas Neidhart [Fri, 1 May 2015 09:57:54 +0000 (11:57 +0200)] 
[MATH-1153] Improve performance of BetaDistribution#sample. Thanks to Sergei Lebedev.

7 years agoDisabling a broken checkstyle test.
Luc Maisonobe [Thu, 30 Apr 2015 19:04:27 +0000 (21:04 +0200)] 
Disabling a broken checkstyle test.

7 years agoFixed checkstyle and findbugs warnings.
Luc Maisonobe [Thu, 30 Apr 2015 16:35:35 +0000 (18:35 +0200)] 
Fixed checkstyle and findbugs warnings.

7 years agoUpdated plugins.
Luc Maisonobe [Thu, 30 Apr 2015 16:35:05 +0000 (18:35 +0200)] 
Updated plugins.

7 years agoRemoved cache setting that directly refers to target directory.
Luc Maisonobe [Thu, 30 Apr 2015 16:31:53 +0000 (18:31 +0200)] 
Removed cache setting that directly refers to target directory.

The configuration is not really needed for maven builds as it is already
the default configuration. However, it breaks Eclipse checks as
different checkstyle versions (the one from maven and the one from
Eclipse) cannot share a common cache file.

7 years agoRemoved RedundantThrows module which is not supported after 6.2.
Luc Maisonobe [Thu, 30 Apr 2015 16:30:09 +0000 (18:30 +0200)] 
Removed RedundantThrows module which is not supported after 6.2.

As Eclipse checkstyle plugin uses a more recent version of checkstyle,
this module created problems. The same problems will certainly arise
with maven plugin when it is updated to post 6.2 versions.

7 years agoTypos.
Luc Maisonobe [Thu, 30 Apr 2015 14:25:48 +0000 (16:25 +0200)] 
Typos.

7 years ago[MATH-853] MathRuntimeException becomes the commons base class for all other exceptions.
Thomas Neidhart [Sun, 26 Apr 2015 20:11:48 +0000 (22:11 +0200)] 
[MATH-853] MathRuntimeException becomes the commons base class for all other exceptions.

7 years agoFix typo.
Thomas Neidhart [Sun, 26 Apr 2015 19:18:57 +0000 (21:18 +0200)] 
Fix typo.

7 years agoRemove spurios change.
Thomas Neidhart [Sun, 26 Apr 2015 19:12:55 +0000 (21:12 +0200)] 
Remove spurios change.

7 years ago[MATH-1197] Computation of 2-sample KS statistic was wrong in case of ties.
Thomas Neidhart [Sun, 26 Apr 2015 18:55:17 +0000 (20:55 +0200)] 
[MATH-1197] Computation of 2-sample KS statistic was wrong in case of ties.

7 years agoRNG seed in unit test.
Gilles [Sun, 19 Apr 2015 01:50:30 +0000 (03:50 +0200)] 
RNG seed in unit test.

7 years agoMerge 3.5 back into 4.0 history.
Luc Maisonobe [Fri, 17 Apr 2015 19:10:07 +0000 (21:10 +0200)] 
Merge 3.5 back into 4.0 history.

7 years agoWrap jgit buildnumber plugin in a profile triggered by .git exsiting.
Luc Maisonobe [Fri, 17 Apr 2015 19:01:38 +0000 (21:01 +0200)] 
Wrap jgit buildnumber plugin in a profile triggered by .git exsiting.

This should prevent numerous warnings when building from a source
archive instead of from git checkout.

7 years agoCode formatting.
tn [Tue, 14 Apr 2015 12:53:21 +0000 (14:53 +0200)] 
Code formatting.

7 years agoMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math
Thomas Neidhart [Mon, 13 Apr 2015 20:14:53 +0000 (22:14 +0200)] 
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math

Conflicts:
src/changes/changes.xml

7 years ago[MATH-1205] Major refactoring of the descriptive statistics package.
Thomas Neidhart [Mon, 13 Apr 2015 20:11:35 +0000 (22:11 +0200)] 
[MATH-1205] Major refactoring of the descriptive statistics package.

7 years agoFixed wrong file name.
Luc Maisonobe [Sun, 12 Apr 2015 17:02:38 +0000 (19:02 +0200)] 
Fixed wrong file name.

7 years agoUpdated site menu for upcoming 3.5 release.
Luc Maisonobe [Sun, 12 Apr 2015 17:02:10 +0000 (19:02 +0200)] 
Updated site menu for upcoming 3.5 release.

7 years agoMoved FastMathTestPerformance out of the main test tree.
Luc Maisonobe [Sun, 12 Apr 2015 15:54:36 +0000 (17:54 +0200)] 
Moved FastMathTestPerformance out of the main test tree.

Is is a benchmark rather than a test.

JIRA: MATH-1195

7 years agoAdded a way to build polyhedrons sets from vertices and facets.
Luc Maisonobe [Sun, 12 Apr 2015 15:15:55 +0000 (17:15 +0200)] 
Added a way to build polyhedrons sets from vertices and facets.

7 years agoAdded missing serial version ids.
Phil Steitz [Sat, 11 Apr 2015 21:34:08 +0000 (14:34 -0700)] 
Added missing serial version ids.

7 years agoAdded @Overrides.
Phil Steitz [Sat, 11 Apr 2015 21:04:59 +0000 (14:04 -0700)] 
Added @Overrides.

7 years agoDropped vestigal methods from test distributions.
Phil Steitz [Sat, 11 Apr 2015 20:45:50 +0000 (13:45 -0700)] 
Dropped vestigal methods from test distributions.

7 years agoRemove deprecated classes in optim package.
Thomas Neidhart [Sat, 11 Apr 2015 14:05:10 +0000 (16:05 +0200)] 
Remove deprecated classes in optim package.

7 years agoRemove deprecated classes in optim package.
Thomas Neidhart [Sat, 11 Apr 2015 14:04:53 +0000 (16:04 +0200)] 
Remove deprecated classes in optim package.

7 years agoReset clirr exceptions after package change.
Thomas Neidhart [Sat, 11 Apr 2015 13:51:07 +0000 (15:51 +0200)] 
Reset clirr exceptions after package change.

7 years agoRemove deprecated interfaces/classes/methods in analysis package.
Thomas Neidhart [Sat, 11 Apr 2015 13:47:35 +0000 (15:47 +0200)] 
Remove deprecated interfaces/classes/methods in analysis package.

7 years agoAdd missing @Override tags, formatting.
Thomas Neidhart [Sat, 11 Apr 2015 12:57:51 +0000 (14:57 +0200)] 
Add missing @Override tags, formatting.

7 years agoAdd missing @Override tags.
Thomas Neidhart [Sat, 11 Apr 2015 12:51:07 +0000 (14:51 +0200)] 
Add missing @Override tags.

7 years agoFixed ignored method parameters in QRDecomposition protected methods.
Luc Maisonobe [Fri, 10 Apr 2015 19:36:04 +0000 (21:36 +0200)] 
Fixed ignored method parameters in QRDecomposition protected methods.

JIRA: MATH-1191

7 years agoChanged javadoc as the RandomDataGenerator class.
Luc Maisonobe [Fri, 10 Apr 2015 19:06:37 +0000 (21:06 +0200)] 
Changed javadoc as the RandomDataGenerator class.

The class does not implement an interface anymore (the previous
interface has been deprecated in 3.X and removed in 4.0).

JIRA: MATH-1212

7 years agoFixed @Override checkstyle warnings.
Luc Maisonobe [Fri, 10 Apr 2015 15:45:37 +0000 (17:45 +0200)] 
Fixed @Override checkstyle warnings.

@Override was forbidden at some places in Java 5, but is now mandatory
at the same places in Java 7.

7 years agoFixed wrong intersection selection in polyhedrons sets.
Luc Maisonobe [Fri, 10 Apr 2015 14:37:18 +0000 (16:37 +0200)] 
Fixed wrong intersection selection in polyhedrons sets.

Sometimes the selected intersection point was on the wrong side of the
line (i.e. in the opposite of the direction of the line).

Thanks to Mike Zimmerman for identifying and solving the issue.

JIRA: MATH-1211

7 years agoAdded dump/parse utilities for BSP trees.
Luc Maisonobe [Fri, 10 Apr 2015 14:33:43 +0000 (16:33 +0200)] 
Added dump/parse utilities for BSP trees.

These utilities are for test and debug purposes only.

7 years agoFixed javadoc. JIRA: MATH-1214.
Phil Steitz [Fri, 10 Apr 2015 00:47:34 +0000 (17:47 -0700)] 
Fixed javadoc. JIRA: MATH-1214.

7 years agoJavadoc warnings.
Gilles [Thu, 9 Apr 2015 12:59:54 +0000 (14:59 +0200)] 
Javadoc warnings.

7 years agoTypo.
Gilles [Thu, 9 Apr 2015 12:59:16 +0000 (14:59 +0200)] 
Typo.

7 years agoMATH-1206
Gilles [Thu, 9 Apr 2015 12:37:42 +0000 (14:37 +0200)] 
MATH-1206

New API methods in "LeastSquaresProblem.Evaluation" class.

7 years agoFixed wrong handling of a corner case.
Luc Maisonobe [Wed, 8 Apr 2015 15:36:24 +0000 (17:36 +0200)] 
Fixed wrong handling of a corner case.

The problem occurs in very difficult to reproduce cases, as it is really
a corner case. When the vanishing cut-subhyperplane occurs during a
Difference operation, the fixed node still has a null cut-subhyperplane.
This was not properply handled.

JIRA: MATH-1162

7 years agoAdded missing @Override
Luc Maisonobe [Thu, 19 Mar 2015 09:35:08 +0000 (10:35 +0100)] 
Added missing @Override

7 years agoFix sonar error: remove private final field and return the DEFAULT value instead.
Thomas Neidhart [Wed, 18 Mar 2015 21:41:00 +0000 (22:41 +0100)] 
Fix sonar error: remove private final field and return the DEFAULT value instead.

7 years agoMATH-1210
Gilles [Wed, 18 Mar 2015 15:57:16 +0000 (16:57 +0100)] 
MATH-1210

Improved error reporting.

7 years agoFix checkstyle warning, remove forgotten deprecated methods.
Thomas Neidhart [Mon, 16 Mar 2015 20:29:21 +0000 (21:29 +0100)] 
Fix checkstyle warning, remove forgotten deprecated methods.

7 years agoAdd missing @Override tags, add final for member variables where applicable.
Thomas Neidhart [Mon, 16 Mar 2015 20:26:05 +0000 (21:26 +0100)] 
Add missing @Override tags, add final for member variables where applicable.

7 years agoAdd missing @Override tags, add final for member variables where applicable.
Thomas Neidhart [Mon, 16 Mar 2015 20:24:39 +0000 (21:24 +0100)] 
Add missing @Override tags, add final for member variables where applicable.

7 years ago[MATH-1209] Fix link to algorithm description in PoissonDistribution#sample(). Thanks...
Thomas Neidhart [Wed, 11 Mar 2015 21:08:57 +0000 (22:08 +0100)] 
[MATH-1209] Fix link to algorithm description in PoissonDistribution#sample(). Thanks to Jonathan Ogilvie

7 years agoUse proper type for changelog entry.
Thomas Neidhart [Tue, 10 Mar 2015 22:28:33 +0000 (23:28 +0100)] 
Use proper type for changelog entry.

7 years ago[MATH-757] Removed broken and deprecated synchronization support in ResizableDoubleArray.
Thomas Neidhart [Tue, 10 Mar 2015 22:16:03 +0000 (23:16 +0100)] 
[MATH-757] Removed broken and deprecated synchronization support in ResizableDoubleArray.

7 years agoAdd missing @Override tags, use final for private fields where possible.
Thomas Neidhart [Tue, 10 Mar 2015 22:05:14 +0000 (23:05 +0100)] 
Add missing @Override tags, use final for private fields where possible.

7 years agoRemove deprecated Vector#distance(Vector) method.
Thomas Neidhart [Tue, 10 Mar 2015 22:00:03 +0000 (23:00 +0100)] 
Remove deprecated Vector#distance(Vector) method.

7 years agoMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math
Thomas Neidhart [Tue, 10 Mar 2015 21:46:30 +0000 (22:46 +0100)] 
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math

Conflicts:
src/changes/changes.xml

7 years agoAdd missing @Override tags.
Thomas Neidhart [Tue, 10 Mar 2015 21:42:03 +0000 (22:42 +0100)] 
Add missing @Override tags.

7 years ago[MATH-945] Added log10 to RealFieldElement.
Thomas Neidhart [Tue, 10 Mar 2015 21:38:48 +0000 (22:38 +0100)] 
[MATH-945] Added log10 to RealFieldElement.

7 years agoAdd missing @Override tags, formatting.
Thomas Neidhart [Tue, 10 Mar 2015 21:30:44 +0000 (22:30 +0100)] 
Add missing @Override tags, formatting.

7 years agoCorrected the fix for MATH-1208.
Phil Steitz [Mon, 9 Mar 2015 19:37:57 +0000 (12:37 -0700)] 
Corrected the fix for MATH-1208.

7 years agoMade getKernel return a constant distribution for zero variance bins. JIRA: MATH...
Phil Steitz [Mon, 9 Mar 2015 02:36:20 +0000 (19:36 -0700)] 
Made getKernel return a constant distribution for zero variance bins.  JIRA: MATH-1203.

7 years agoMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math
Gilles [Sun, 8 Mar 2015 23:44:45 +0000 (00:44 +0100)] 
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math

7 years agoMATH-1207
Gilles [Sun, 8 Mar 2015 23:42:35 +0000 (00:42 +0100)] 
MATH-1207

Relax tolerance in unit test.

7 years agoMade getKernel return a constant distribution for zero variance bins. JIRA: MATH...
Phil Steitz [Sun, 8 Mar 2015 21:10:25 +0000 (14:10 -0700)] 
Made getKernel return a constant distribution for zero variance bins.  JIRA: MATH-1203.

7 years agoMake private fields final if possible, add missing @Override tags for implemented...
Thomas Neidhart [Mon, 2 Mar 2015 21:53:16 +0000 (22:53 +0100)] 
Make private fields final if possible, add missing @Override tags for implemented interfaces, javadoc formatting.

7 years agoRemove unneeded empty lines.
Thomas Neidhart [Mon, 2 Mar 2015 21:41:44 +0000 (22:41 +0100)] 
Remove unneeded empty lines.

7 years ago[MATH-958] Remove support for NaNStrategy#REMOVED in SpearmansCorrelation.
Thomas Neidhart [Mon, 2 Mar 2015 21:41:18 +0000 (22:41 +0100)] 
[MATH-958] Remove support for NaNStrategy#REMOVED in SpearmansCorrelation.

7 years agoRemove deprecated interpolation and fitter classes.
Thomas Neidhart [Wed, 25 Feb 2015 22:02:30 +0000 (23:02 +0100)] 
Remove deprecated interpolation and fitter classes.

7 years agoRemove unused imports.
Thomas Neidhart [Wed, 25 Feb 2015 22:01:48 +0000 (23:01 +0100)] 
Remove unused imports.

7 years agoEnabled MissingOverride check after upgrade to Java 7.
Thomas Neidhart [Wed, 25 Feb 2015 21:49:13 +0000 (22:49 +0100)] 
Enabled MissingOverride check after upgrade to Java 7.

7 years agoRemove deprecated optimization package.
Thomas Neidhart [Wed, 25 Feb 2015 21:34:53 +0000 (22:34 +0100)] 
Remove deprecated optimization package.

7 years ago[MATH-869] NullArgumentException now extends NullPointerException.
Thomas Neidhart [Wed, 25 Feb 2015 21:25:47 +0000 (22:25 +0100)] 
[MATH-869] NullArgumentException now extends NullPointerException.

7 years agoRemove temporary output.
Thomas Neidhart [Wed, 25 Feb 2015 21:20:33 +0000 (22:20 +0100)] 
Remove temporary output.

7 years ago[MATH-839] Renamed cumulativeProbability(double, double) to probability(double, doubl...
Thomas Neidhart [Wed, 25 Feb 2015 20:43:34 +0000 (21:43 +0100)] 
[MATH-839] Renamed cumulativeProbability(double, double) to probability(double, double) in IntegerDistribution and RealDistribution. Thanks to Gilles.