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
Luc Maisonobe
3e82d9f1a3
announced bugs fixed by sebb
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062363 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 10:24:34 +00:00
Luc Maisonobe
8252860a27
javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062359 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 10:16:49 +00:00
Sebastian Bazley
0d4c8d4a70
MATH-496 Create FastMath copySign methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062303 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 00:57:29 +00:00
Sebastian Bazley
9923564810
Should only test against public methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062301 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 00:52:34 +00:00
Sebastian Bazley
6967590b83
Javadoc tweak
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062260 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 20:28:37 +00:00
Sebastian Bazley
7c2a4fa579
Simplify code by using doubleHighPart
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062257 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 20:26:11 +00:00
Sebastian Bazley
c6e0669a73
Update changes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062256 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 20:23:37 +00:00
Sebastian Bazley
093d8d914a
MATH-494 FastMath atan2 does not agree with StrictMath for special cases
...
Add doubleHighPart() method to better handle splitting high absolute values
Add getSign() utility method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062253 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 20:19:40 +00:00
Sebastian Bazley
3729cef21a
Tidy up debug output
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062187 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 16:22:06 +00:00
Sebastian Bazley
b0bd0cdc9c
MATH-494 Allow for sufficiently close numbers but still detect +/- 0 difference
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062089 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 01:44:57 +00:00
Sebastian Bazley
e4caa054a0
MATH-493 FastMath min and max fail with (Infinity,-Infinity)
...
(still to fix zero case)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062040 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 21:46:13 +00:00
Sebastian Bazley
517855fe74
Correct list of unique methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1062007 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 20:24:37 +00:00
Sebastian Bazley
2c88aa94c1
MATH-478 FastMath is not an exact replacement for StrictMath
...
Add missing methods - TODO implement our own versions
Document which methods are additional to StrictMath
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061996 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 20:04:57 +00:00
Sebastian Bazley
7d763283f8
Make Special test methods generic
...
Add tests for two parameters
Add checks for missing or extra methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061991 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 20:01:10 +00:00
Gilles Sadowski
082f76bd53
MATH-492
...
Forgot to add a reference in the "changes.xml" file.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061867 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 15:56:07 +00:00
Gilles Sadowski
3ea6733ee8
MATH-492
...
Removed class "MaxIterationsExceededException". Replaced last occurrence by
"MaxCountExceedeException".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061850 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 15:38:21 +00:00
Gilles Sadowski
32c2303288
MATH-491
...
Replaced old (checked) "DimensionMismatchException" by its unchecked
equivalent in package "exception".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061839 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 15:12:55 +00:00
Gilles Sadowski
a49d42bdf7
Trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061812 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 14:08:18 +00:00
Gilles Sadowski
a28aac9aa8
MATH-488
...
Removed occurrences of "MathException" in multidimensional interpolator.
Replaced "DimensionMismatchException" by its unchecked equivalent (MATH-491).
[I forgot to make those changes as part of MATH-458.]
Fixed Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061790 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 12:51:03 +00:00
Sebastian Bazley
c9f2d87527
Bugs have been fixed; fail in future
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061630 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 04:38:45 +00:00
Sebastian Bazley
6babdfb3a8
Typo in constant name
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061628 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 04:36:58 +00:00