Sebastian Bazley
84e3a4787c
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003352 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 01:55:28 +00:00
Sebastian Bazley
5fb05a5e37
Add missing @Override marker
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003351 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 01:50:12 +00:00
Sebastian Bazley
93cbe58156
Unnecessary to cast byte into byte
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003350 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 01:46:13 +00:00
Sebastian Bazley
60c7078ca3
Unnecessary to cast byte into byte
...
Add missing @Override marker
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003349 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 01:40:02 +00:00
Sebastian Bazley
955b3692b7
Unnecessary to cast byte into byte
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003348 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 01:38:09 +00:00
Sebastian Bazley
6af2ae6adc
Make immutable private fields final
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003346 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 01:27:16 +00:00
Gilles Sadowski
c6d53a5258
ade all distribution classes immutable (as per the conclusion of MATH-349).
...
Modified two classes in the "stat" package where some code conflicted with
ditribution immutability.
Replaced instances of "IllegalArgumentException" with an appropriate stateful
exception.
Cleaned up Javadoc comments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003048 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 12:55:02 +00:00
Luc Maisonobe
3bf8140d65
removed @Override annotations which are not Java 5 compliant
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003027 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 12:07:46 +00:00
Luc Maisonobe
df74650ec2
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/trunk@1002829 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 19:50:24 +00:00
Gilles Sadowski
4b9b7585dc
Removed deprecated code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1002145 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 12:38:09 +00:00
Luc Maisonobe
172a818945
fixed a missing change from Math to FastMath
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1002042 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 07:19:43 +00:00
Gilles Sadowski
f210f2fbce
Removed deprecated code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001736 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 13:43:59 +00:00
Gilles Sadowski
a10ae161bf
Removed deprecated code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001700 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 12:18:22 +00:00
Gilles Sadowski
dcbe5c7caf
Removed deprecated code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001681 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 11:53:13 +00:00
Gilles Sadowski
bde7476da5
MATH-349
...
Removed deprecated code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001533 13f79535-47bb-0310-9956-ffa450edef68
2010-09-26 21:53:56 +00:00
Gilles Sadowski
4cc9a49db1
MATH-349
...
Removed deprecated methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001331 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 23:06:34 +00:00
Phil Steitz
0b7b9257fb
Fixed javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001229 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 14:57:54 +00:00
Gilles Sadowski
2c508b8458
Introduced "MatrixDimensionMismatchException" to replace "InvalidMatrixException"
...
whenever it was used to signal a row or column dimension mismatch.
"MessageFactory": Fixed wrong order of appearance of general and specific messages.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001107 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24 23:12:34 +00:00
Gilles Sadowski
e3fcb4a19c
Removed unused import.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1001104 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24 23:04:21 +00:00
Gilles Sadowski
51aa6e6ca2
MATH-413 (point 13)
...
Selecting a random start value (instead of interval bounds).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1000422 13f79535-47bb-0310-9956-ffa450edef68
2010-09-23 12:11:56 +00:00
Gilles Sadowski
8232bfbded
MATH-413
...
Moving classes to a more appropriate package.
Removed unused interfaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@999948 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22 13:54:25 +00:00
Gilles Sadowski
b625ebe85b
Fixed Javadoc warning.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@999939 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22 13:41:07 +00:00
Luc Maisonobe
62dc5114ec
improved documentation (javadoc, code comments about optimization and userguide)
...
JIRA: MATH-419
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@999577 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 19:50:43 +00:00
Luc Maisonobe
669cdc6719
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/trunk@999135 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20 22:06:07 +00:00
Phil Steitz
eb504310ee
Fixed errors in multiple regression section. JIRA: MATH-407.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@998761 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20 01:57:03 +00:00
Luc Maisonobe
dbb5bb4968
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/trunk@998744 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 22:34:26 +00:00
Dimitri Pourbaix
4eccb93251
MATH-416 fixed
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@997724 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16 12:39:34 +00:00
Phil Steitz
aba7e04d44
Made intercept/noIntercept configurable in multiple regression classes. JIRA: MATH-409.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@996404 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13 02:01:42 +00:00
Luc Maisonobe
820915c236
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/trunk@996195 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 19:06:11 +00:00
Luc Maisonobe
1e7592fd59
Fixed lost cause in MathRuntimeException.createInternalError
...
JIRA: MATH-415
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@996179 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 17:19:54 +00:00
Luc Maisonobe
df60792d6f
added fast cubic root computation
...
JIRA: MATH-375
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@996172 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 16:57:30 +00:00
Luc Maisonobe
0f5d514dd7
added tests for asin and acos
...
JIRA: MATH-375
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@996167 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 16:42:48 +00:00
Luc Maisonobe
742f3cd33e
fixed visibility of an internal constructor that should remain private
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@995990 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 21:31:19 +00:00
Luc Maisonobe
074985ec2a
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/trunk@995989 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 21:29:59 +00:00
Luc Maisonobe
75b2bab091
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/trunk@995988 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 21:28:06 +00:00
Gilles Sadowski
c2095faf73
Removed strict equality comparison.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@995035 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 12:51:38 +00:00
Gilles Sadowski
fc2ba06179
Removed unused field.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@995001 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 12:04:13 +00:00
Gilles Sadowski
5cb711fd8e
Fixed "checkstyle" errors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@994988 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 11:22:41 +00:00
Phil Steitz
7584e481bf
* 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/trunk@993574 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 01:24:51 +00:00
William Barker
89ec5debd5
fix jar version name
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@993196 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07 02:22:48 +00:00
Gilles Sadowski
44f6b8b20f
MATH-413 (points 1, 2 and 10)
...
Reverted to the original version of the convergence checker (using only the
previous and current best points).
"LevenberMarquardtOptimizer": Removed setters (control parameters must be
set at construction). Added a contructor.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992976 13f79535-47bb-0310-9956-ffa450edef68
2010-09-06 09:06:28 +00:00
Gilles Sadowski
fc5606177f
Fixed typo in Javadoc comment.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992897 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 21:37:50 +00:00
Luc Maisonobe
80384009b3
fixed checkstyle warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992879 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:42:48 +00:00
Luc Maisonobe
d3450752e7
removing unused variables
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992876 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:35:26 +00:00
Luc Maisonobe
05aebba620
added tests based on dfp library (now a package in commons-math)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992871 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:28:12 +00:00
Luc Maisonobe
c2134b3a90
fixed errors with infinities
...
added asin/acos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992870 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:27:05 +00:00
Luc Maisonobe
99b17c9ce1
fixed wrong hashcode for mantissa array
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992864 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:09:44 +00:00
Luc Maisonobe
3a08d608eb
fixed javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992862 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 19:08:53 +00:00
Luc Maisonobe
cca4fb2733
fixed missing annotations preventing test to run
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992734 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 08:47:56 +00:00
Luc Maisonobe
85d35b0ff6
added the dfp library
...
The Dfp class represent the high precision numbers, it implements our existing Field interface and hence each instance is associated with a DfpField that provides the constants at the required precision as well as factory methods. This allowed to remove the compile-time constraint in the library. Users can even use at the same time a field for 20 decimals digits precision and another field for 100 digits precision. Dfp instances with different precision CANNOT be mixed in the same computation (doing so creates a NaN). A few utility methods have been added, like constructors from integral types, isInfinite and isNaN methods, equal has been renames to equals and its signature changed to match the general Object method (a hashcode method has been added too).
JIRA: MATH-412
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992697 13f79535-47bb-0310-9956-ffa450edef68
2010-09-04 22:59:21 +00:00