Commit Graph

2967 Commits

Author SHA1 Message Date
Sebastian Bazley 221899f3ce Tidy up test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066178 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:53:01 +00:00
Sebastian Bazley 76f4c46b44 Tidy up test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066176 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:52:05 +00:00
Sebastian Bazley d063c84cbf Tidy up test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066173 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:45:20 +00:00
Sebastian Bazley 058bb97d72 Missing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066172 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:42:06 +00:00
Sebastian Bazley 2ad336c059 Remove unnecessary throws clauses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066171 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:41:34 +00:00
Sebastian Bazley 72e13fcccc Don't waste precious ; !
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066170 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:36:42 +00:00
Sebastian Bazley b050cc3822 Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066169 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:35:42 +00:00
Sebastian Bazley ae7dc2aa99 MATH-505 TestUtils is thread-hostile - tests no longer needed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066156 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:25:21 +00:00
Sebastian Bazley c109e906d3 MATH-505 TestUtils is thread-hostile
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066129 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 18:46:33 +00:00
Sebastian Bazley c5b908a195 MATH-505 TestUtils is thread-hostile
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066128 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 18:41:37 +00:00
Gilles Sadowski 21ece86385 MATH-503
Step function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066018 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 12:01:03 +00:00
Sebastian Bazley 80fea20c49 Make private immutable fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065894 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 02:15:57 +00:00
Sebastian Bazley 622b2d0107 Unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065877 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 00:44:18 +00:00
Sebastian Bazley 707313c389 Unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065876 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 00:43:31 +00:00
Sebastian Bazley fb96c0ee17 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065875 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 00:43:07 +00:00
Phil Steitz f301516390 Added section on Exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065874 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 00:23:48 +00:00
Sebastian Bazley 828e3db622 Arrays might as well be final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065873 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 00:12:58 +00:00
Phil Steitz c5641a2343 Eliminated author attribute.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065851 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 23:22:51 +00:00
Phil Steitz 0cf2844e58 Made reference to component name consistent.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065848 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 23:20:11 +00:00
Sebastian Bazley f922f947ee Cannot use inheritDoc if there is nothing to inherit from
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065763 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 20:42:00 +00:00
Sebastian Bazley a64940bdc2 Unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065760 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 20:41:05 +00:00
Gilles Sadowski 2a76512db9 Javadoc update.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065614 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 13:48:50 +00:00
Gilles Sadowski 36656ded2d Added utility method "copyOf" in "MathUtils".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065595 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 13:13:38 +00:00
Phil Steitz 09d782ad0c Moved some issues from 2.2 to 3.0.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065487 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 05:57:22 +00:00
Gilles Sadowski 6fe6e487ff MATH-503
Added sigmoid and generalized logistic functions.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1065146 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 23:38:39 +00:00
Gilles Sadowski ec822cf7d4 Added functions.
Replaced hard-coded numbers by a named constant.
Changed display format for ratios.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063931 13f79535-47bb-0310-9956-ffa450edef68
2011-01-27 00:31:26 +00:00
Sebastian Bazley e56bea66fd Allow a single JUnit test to be run if the test.entry property is defined
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063393 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 18:36:52 +00:00
Sebastian Bazley dc0bf055a7 Use single report method to make changes to the base time easier
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063077 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 00:28:46 +00:00
Sebastian Bazley a333e580cd Add header line
Allow run count to be specified as system property
Use nanoTime for more accurate measurement
Scale time by number of runs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063064 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 23:39:22 +00:00
Sebastian Bazley a45c81334c Trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063038 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 22:34:35 +00:00
Sebastian Bazley 1361211c4e Tab police
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063037 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 22:33:11 +00:00
Sebastian Bazley 1659159855 Allow for specific atan2 and toRadians off-by-one errors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063032 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 22:26:31 +00:00
Gilles Sadowski 7b09face70 Output timing info as a ratio with respect to StrictMath benchmark result.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063019 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 22:15:44 +00:00
Luc Maisonobe a3f6c210e3 fixed scalb for very large powers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062928 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 19:13:33 +00:00
Sebastian Bazley 2f7074cff0 Add numeric docs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062925 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 19:08:57 +00:00
Sebastian Bazley 8c7b9a1495 Allow a single test to be run
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062924 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 19:07:57 +00:00
Sebastian Bazley fa0d87fd62 Remove reflection tests as they are in FastMathStrictComparisonTest
Enable fail if not all StrictMath methods have been implemented

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062902 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 18:07:48 +00:00
Sebastian Bazley 6e9f0c1dbb Check all FastMath methods against StrictMath results
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062893 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 17:33:33 +00:00
Sebastian Bazley 4bab713521 MATH-477 FastMath Javadoc should show which methods actually use java.lang.Math internally
Also fixed round(int) to use local FastMath method

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062764 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 13:19:52 +00:00
Gilles Sadowski ecfd29007c Splitted the single "testPerformance" method into several ones (one test case
per mathematical function) for easier comparison. Added a third benchmark
(that calls "Math" methods).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062761 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 12:59:58 +00:00
Sebastian Bazley 97e89cdd7a MATH-493 FastMath min and max fail with (Infinity,-Infinity) and (0,0, -0.0)
Fixing (0,0, -0.0) by using code from Harmony.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062758 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 12:47:23 +00:00
Gilles Sadowski 946995ac16 MATH-500
Temporarily moved "ConvergingAlgorithm" and "ConvergingAlgorithmImpl" to
package "analysis.integration". See MATH-501.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062707 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 09:48:39 +00:00
Luc Maisonobe d86b785b6d added FastMath.hypot
JIRA: MATH-478

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062559 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 22:37:50 +00:00
Luc Maisonobe 87c0126a33 javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062552 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 22:26:22 +00:00
Luc Maisonobe f26739a789 added FastMath.scalb(double, int) and FastMath.scalb(float, int)
deprecated MathUtils.scalb(double, int)
JIRA: MATH-498

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062550 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 22:22:08 +00:00
Sebastian Bazley febcb077e7 Split testPerformance() into new class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062456 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 15:44:32 +00:00
Sebastian Bazley de4aff2319 Update nextAfter Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062406 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 12:20:41 +00:00
Sebastian Bazley 2cd834df74 Add another change
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062402 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 12:11:33 +00:00
Luc Maisonobe 4e017170f5 fixed nextAfter implementations for handling of some special values
fixed the signature of the float version, as the spec is to have a double second argument
moved the existing tests that were used in the former implementation in MathUtils,
fixing them also as two of them were not compliant with the spec for equal numbers
Jira: MATH-478

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062387 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 11:06:24 +00:00
Luc Maisonobe f806576392 added getExponent methods to FastMath
JIRA: MATH-497

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062368 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 10:28:44 +00:00