Luc Maisonobe
e5c461784a
reverting change introduced in 1035004:
...
it was the javadoc that did not correspond to the intended behavior, not the code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1035073 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 21:32:57 +00:00
Luc Maisonobe
5288b179f0
allow either specific or generic formats to be null
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1035010 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 15:33:16 +00:00
Luc Maisonobe
85fec9ef02
fixed message building so the behavior matches the existing javadoc:
...
general arguments are the ones remaining after the specific ones have been handled
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1035004 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 15:06:35 +00:00
Luc Maisonobe
7662c49fff
added missing javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1035001 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 15:04:13 +00:00
Gilles Sadowski
15442cf7da
MATH-440
...
New exception "MathUserException" supersedes "FunctionEvaluationException",
"MatrixVisitorException" and "DerivativeException".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1034457 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12 16:36:57 +00:00
Luc Maisonobe
ac7334d69b
Fixed k-means++ to add several strategies to deal with empty clusters that may appear during iterations
...
JIRA: MATH-429
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1026666 13f79535-47bb-0310-9956-ffa450edef68
2010-10-23 19:30:48 +00:00
Luc Maisonobe
fa55b9f280
Improved Percentile performance by using a selection algorithm instead of a
...
complete sort, and by allowing caching data array and pivots when several
different percentiles are desired
JIRA: MATH-417
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1006299 13f79535-47bb-0310-9956-ffa450edef68
2010-10-10 14:47:17 +00:00
Luc Maisonobe
05dbd4e4cf
applied Bill's patch adding sinh, cosh and tanh functions to FastMath
...
JIRA: MATH-375
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1004045 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 20:52:53 +00:00
Luc Maisonobe
a987c130a5
removed unneeded import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1004023 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 18:28:22 +00:00
Luc Maisonobe
3c8ddbb76c
removed unneeded import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1004022 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 18:21:52 +00:00
Luc Maisonobe
5d0088c1df
grammar
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003997 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 16:45:55 +00:00
Luc Maisonobe
1b9e8dd09f
allow zero length vectors
...
JIRA: MATH-391
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003993 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 16:39:16 +00:00
Luc Maisonobe
6793b921a0
backported r1003576 from trunk to branch 2.X
...
Constants might as well be static
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003910 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 22:25:56 +00:00
Luc Maisonobe
a164959d1e
backported r1003567 from trunk to branch 2.X
...
Don't catch Exception and fail(); let JUnit handle it
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003907 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 22:23:34 +00:00
Luc Maisonobe
417848e839
backported r1003566 from trunk to branch 2.X
...
Narrow expected exception
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003902 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 22:13:35 +00:00
Luc Maisonobe
332d372bdc
backported r1003549 from trunk to branch 2.X
...
Split multiple tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003901 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 22:11:04 +00:00
Luc Maisonobe
c87e900a1b
backported r1003547 from trunk to branch 2.X
...
Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003900 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 22:08:39 +00:00
Luc Maisonobe
76ab9055aa
backported :r1003543,1003545,1003569,1003584 from trunk to branch 2.X
...
Add missing fail() calls for expected exceptions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003899 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 22:06:55 +00:00
Luc Maisonobe
b857985c79
backported r1003533 from trunk to branch 2.X
...
Unnecessary cast
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003896 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 21:53:24 +00:00
Luc Maisonobe
ad59080231
backported r1003526 from trunk to branch 2.X
...
Java 1.5 does not support Arrays.copyOf()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003895 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 21:50:58 +00:00
Luc Maisonobe
b4681e50ff
backported part of r1003351 from trunk to branch 2.X
...
Add missing @Override marker
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003892 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 21:28:56 +00:00
Luc Maisonobe
c4f85a60a1
backported r1003350 from trunk to branch 2.X
...
Unnecessary to cast byte into byte
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003890 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 21:14:22 +00:00
Luc Maisonobe
61c404a0f0
backported r1003349 from trunk to branch 2.X
...
Unnecessary to cast byte into byte
Add missing @Override marker
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003889 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 21:11:55 +00:00
Luc Maisonobe
c832a0c215
backported r1003348 from trunk to branch 2.X
...
Unnecessary to cast byte into byte
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003888 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 21:08:52 +00:00
Luc Maisonobe
1d3822bf9c
backported part of r1003346 from trunk to branch 2.X
...
Make immutable private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003886 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 21:04:44 +00:00
Luc Maisonobe
87f2ace0ce
backported part of r999948 from trunk to branch 2.X
...
moved PowellOptimizer to the optimization.direct package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003881 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 20:52:39 +00:00
Phil Steitz
2c9bdc138e
Corrected javadoc link.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003869 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 19:14:45 +00:00
Luc Maisonobe
8ad7c0a62e
Prevent ODE integration to be stuck at initial point when it is restarted after
...
an event has stopped the previous integration
JIRA: MATH-421
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1002827 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 19:49:34 +00:00
Gilles Sadowski
635bc4b1b3
Added deprecation markers (conflict with immutable distribution instances).
...
Fixed typo in Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1002660 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 14:51:54 +00:00
Luc Maisonobe
c59919dabe
fixed a missing change from Math to FastMath
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1002040 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 07:18:31 +00:00
Luc Maisonobe
9c0ed34439
improved documentation (javadoc, code comments about optimization and userguide)
...
JIRA: MATH-419
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@999579 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 19:51:57 +00:00
Luc Maisonobe
c8bef749c3
improved Well pseudo random numbers generators performances by inlining transforms and using indirection arrays to avoid index computation
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@999136 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20 22:06:40 +00:00
Phil Steitz
aad36b356e
Fixed errors in multiple regression section. JIRA: MATH-407.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@998761 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20 01:57:03 +00:00
Luc Maisonobe
4a18419864
Added François Panneton and Pierre L'Ecuyer WELL random generators:
...
WELL512a, WELL1024a, WELL19937a, WELL19937c, WELL44497a and WELL44497b
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@998742 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 22:33:45 +00:00
Dimitri Pourbaix
8541c80563
MATH-416 fixed
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@997726 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16 12:39:51 +00:00
Phil Steitz
2534cc0f29
Made intercept/noIntercept configurable in multiple regression classes. JIRA: MATH-409.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@996404 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13 02:01:42 +00:00
Luc Maisonobe
40e0297ae2
use the new Brent solver constructor instead of setting accuracy and max iteration afterwards
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@996194 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 19:05:52 +00:00
Luc Maisonobe
f34a7da42c
Fixed lost cause in MathRuntimeException.createInternalError
...
JIRA: MATH-415
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@996178 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 17:19:18 +00:00
Luc Maisonobe
b5d04e247f
added fast cubic root computation
...
JIRA: MATH-375
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@996166 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 16:40:25 +00:00
Luc Maisonobe
f5bec5767b
added tests for asin and acos
...
JIRA: MATH-375
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@996161 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 16:23:18 +00:00
Luc Maisonobe
92351cbb8f
fixed visibility of an internal constructor that should remain private
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@995987 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 21:24:15 +00:00
Luc Maisonobe
294eaf3415
Use Jonathan and Peter Borwein quartic formula to compute PI,
...
it is MUCH faster than the previous one especially for large
numbers of digits and allows quicker loading of the class.
It was tested to compute about 10000 decimal digits, just for the fun
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@995986 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 21:23:25 +00:00
Luc Maisonobe
8d9febb32f
prevent DfpField radix digit to be smaller than 4 as it created problem when converting to double
...
(we need to be able to create a Dfp with value 2^52 which needs 16 decimal digits or 4 radix digits)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@995965 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 20:24:54 +00:00
Phil Steitz
995efe1ead
* Modified multiple regression newSample methods to ensure that by default in all cases,
...
regression models are estimated with intercept terms. Prior to the fix for this issue,
newXSampleData(double[][]), newSampleData(double[], double[][]) and
newSampleData(double[], double[][], double[][]) all required columns of "1's"
to be inserted into the x[][] arrays to create a model with an intercept term;
while newSampleData(double[], int, int) created a model including an intercept
term without requiring the unitary column. All methods have been changed to
eliminate the need for users to add unitary columns to specify regression models.
* Improved javadoc
* Improved tests
JIRA: MATH-411
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@993574 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 01:24:51 +00:00
Luc Maisonobe
a7cfaf46e3
fixed checkstyle warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992878 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:42:20 +00:00
Luc Maisonobe
5b1beecc97
removing unused variables
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992875 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:34:41 +00:00
Luc Maisonobe
e22b8c8a2b
added tests based on dfp library (now a package in commons-math)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992872 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:28:58 +00:00
Luc Maisonobe
e945ddcd4e
fixed errors with infinities
...
added asin/acos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992869 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:26:35 +00:00
Luc Maisonobe
dd715b13cd
fixed wrong hashcode for mantissa array
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992861 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:07:50 +00:00
Luc Maisonobe
8d37aa4016
fixed javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992860 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:06:49 +00:00