Commit Graph

55 Commits

Author SHA1 Message Date
Luc Maisonobe bb00559975 [MATH-156] use initial guess provided by the caller to BrentSolver.solve(),
thus improving speed

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@536283 13f79535-47bb-0310-9956-ffa450edef68
2007-05-08 18:16:52 +00:00
Brent Worden 409d56d206 MATH-153: Corrected nextInt and nextLong to handle wide value ranges.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@525842 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 15:19:57 +00:00
Luc Maisonobe 2f2f0713f7 announced Mantissa packages inclusion
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@517853 13f79535-47bb-0310-9956-ffa450edef68
2007-03-13 20:26:49 +00:00
Henri Yandell 4dd57aafc1 Fixed copyright header (committing in parts as the full commit timed out)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@480435 13f79535-47bb-0310-9956-ffa450edef68
2006-11-29 07:06:35 +00:00
Phil Steitz 075008dcd4 Modified getSumSquaredErrors method in SimpleRegression to always
return a non-negative result.
JIRA: MATH-85
Reported by Mark Osborn
Patched by Luc Maisonobe


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@419439 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 05:10:49 +00:00
Phil Steitz 00b139a1c4 Fixed bad issue attribute.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@419434 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 04:47:23 +00:00
Phil Steitz 0303fffa15 Added Fast Fourier transform
JIRA: MATH-140
Contributed by Xiaogang Zhang


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@419098 13f79535-47bb-0310-9956-ffa450edef68
2006-07-04 20:58:54 +00:00
Phil Steitz 7ec35cf7f5 Added a nextAfter method in MathUtils to return the next
machine-representable number in a specified direction from a given
floating point number.  Used this to ensure that MathUtils.round does
not return incorrect results for numbers with bad IEEE754 
representations.
JIRA: MATH-151
Reported by Buza Zoltán
Patch submitted by Luc Maisonobe


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@418934 13f79535-47bb-0310-9956-ffa450edef68
2006-07-04 08:09:25 +00:00
Phil Steitz 269822c061 Changed issue ids from BZ to Jira.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@411810 13f79535-47bb-0310-9956-ffa450edef68
2006-06-05 15:11:28 +00:00
Phil Steitz 9ebfb870a2 Modified ProperFractionFormat to reject embedded minus signs.
JIRA: MATH-60
Reported by Nhung Nnguyen


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@411647 13f79535-47bb-0310-9956-ffa450edef68
2006-06-05 03:06:52 +00:00
Phil Steitz a43a4ea63d Added Pascal distribution implementation.
JIRA: MATH-148
Contributed by Joni Salonen


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@411636 13f79535-47bb-0310-9956-ffa450edef68
2006-06-05 01:28:04 +00:00
Phil Steitz 49a15fe6cb Added Todd Parnell as contributor.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@382397 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 14:53:53 +00:00
Phil Steitz e6e3bee13f Added Pascal distribution contributed in BZ #38766.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@381115 13f79535-47bb-0310-9956-ffa450edef68
2006-02-26 16:14:03 +00:00
Brent Worden b38463a5e3 PR: 38091
ComplexFormat was not formatting double values with the provided NumberFormat.  Instead, the real part format was always used.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@365680 13f79535-47bb-0310-9956-ffa450edef68
2006-01-03 16:47:38 +00:00
Phil Steitz c5768f0660 Merged (final) src changes from MATH_1_1 release branch r321516-358399
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@358631 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 21:16:32 +00:00
Phil Steitz 3d70c862db Updated to reflect 1.1 release.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@358039 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 17:08:16 +00:00
Phil Steitz 86fa786c16 Merging bug fixes in r267517:r321515 from MATH_1_1 branch.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@322442 13f79535-47bb-0310-9956-ffa450edef68
2005-10-16 03:29:14 +00:00
Phil Steitz fe3ac4361e Merged changes from MATH_1_1 branch, r240245:r267516
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@267527 13f79535-47bb-0310-9956-ffa450edef68
2005-09-04 00:38:15 +00:00
Brent Worden fd07147f86 Merged changes in MATH_1_1 branch to trunk. This includes revision 232577 through revision 234481.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@239294 13f79535-47bb-0310-9956-ffa450edef68
2005-08-23 02:27:17 +00:00
Phil Steitz 11796d4ed1 Added numerical integration classes contributed by Xiaogang Zhang.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@232588 13f79535-47bb-0310-9956-ffa450edef68
2005-08-14 06:52:31 +00:00
Brent Worden 4eb8044ae7 PR: 35904
Changed rounding methods to not rely on BigDecimal conversions which was causing numerical error.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@231029 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 13:10:26 +00:00
Phil Steitz 22bbd54444 Changed description of submatrix change, version reference.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@208892 13f79535-47bb-0310-9956-ffa450edef68
2005-07-03 06:47:09 +00:00
Phil Steitz 7209fa9fb5 Added description for 1.1 release.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@201908 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 21:28:29 +00:00
Phil Steitz 33e3fd583f Formmatting, changed a couple of 'updates' to 'fixes'.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@201896 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 19:26:00 +00:00
Phil Steitz a5c011a640 Changed Fraction(double) to correctly handle near-integral arguments.
PR # 35434
Submitted by: Jörg Weimar


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@201813 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 01:52:37 +00:00
Phil Steitz d062702366 Changed lcm to throw ArithmeticException (instead of returning bogus
value) if the result is too large to store as an integer.
PR # 35431
Submitted by: Jörg Weimar


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@201810 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 01:19:16 +00:00
Phil Steitz 6ed937e733 Added factory for TTest, ChiSquareTest and TestUtils class with
static methods to create instances and execute tests.
PR #32663



git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@180065 13f79535-47bb-0310-9956-ffa450edef68
2005-06-05 03:58:14 +00:00
Phil Steitz 59c267c22d Add 34042 fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@179959 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 05:37:44 +00:00
Phil Steitz f6da77e2bc Added setSubMatrix methods to RealMatrix, BigMatrix.
Modified copyIn methods to use setSubMatrix and moved array argument checking
from constructors and copyIn to setSubMatrix.
PR # 35007
Base implementation contributed by Rodrigo di Lorenzo Lopes


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@178982 13f79535-47bb-0310-9956-ffa450edef68
2005-05-29 20:26:11 +00:00
Phil Steitz cd3a81c0bb Added createXIdentityMatrix methods to MatrixUtils and deprecated getIdentity
methods in RealMatrixImpl, BigMatrixImpl.
Modified RealMatrixImpl, BigMatrixImpl constructors to throw
IllegalArgumentExceptions instead of ArrayIndexOutOfBounds when dimension
arguments are not positive.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@171229 13f79535-47bb-0310-9956-ffa450edef68
2005-05-21 16:29:19 +00:00
Phil Steitz a4d35ef08b Made PRNG pluggable for classes in the random package.
* Added RandomGeneratorinterface extracted from java.util.random.
* Added and abstract implementation, AbstractRandomGenerator providing default
  implementations of methods based on nextDouble().
* Added a constructor taking a RandomGenerator as an argument to RandomDataImpl
* Changed ValueServer to use a RandomData in its constructor.
* Changes to 1.0 classes should be backward compatible
  (including serialization).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@170243 13f79535-47bb-0310-9956-ffa450edef68
2005-05-15 18:23:35 +00:00
Phil Steitz 723dd64d2e Fixed order of entries, added due-to in last update.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@169128 13f79535-47bb-0310-9956-ffa450edef68
2005-05-08 04:55:57 +00:00
Phil Steitz 746892442f Ported numerics improvements in commons lang Fraction implementation.
Added utility methods for overflow-checked integer arithmetic and
improved gcd method in MathUtils.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@168072 13f79535-47bb-0310-9956-ffa450edef68
2005-05-04 05:14:59 +00:00
Phil Steitz 6a82146702 Fixed error in TTestImpl.homoscedasticTtest. Implementation was
incorrectly using heteroscedastic t statistic. Also improved sensitivity
of test cases.
BZ #34677
Reported by: Gilles Gaillard


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@165583 13f79535-47bb-0310-9956-ffa450edef68
2005-05-02 05:14:49 +00:00
Phil Steitz 2eb28c766c Updated to reflect 34448 fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@161612 13f79535-47bb-0310-9956-ffa450edef68
2005-04-16 21:42:59 +00:00
Brent Worden 0b61f84404 updating copyright
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@159729 13f79535-47bb-0310-9956-ffa450edef68
2005-04-01 20:49:27 +00:00
Brent Worden ee310159d9 PR: 34230
Fixed bug in PolynomialSplineFunction to allow evaluation of the function at the last knot point.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@159727 13f79535-47bb-0310-9956-ffa450edef68
2005-04-01 20:45:21 +00:00
Brent Worden 93a6d754cc added weibull distribution
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@157874 13f79535-47bb-0310-9956-ffa450edef68
2005-03-17 03:20:12 +00:00
Brent Worden 19ddf2957e added cauchy distribution
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@155159 13f79535-47bb-0310-9956-ffa450edef68
2005-02-24 03:59:05 +00:00
Brent Worden 0bc811fa7f added rounding methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@151480 13f79535-47bb-0310-9956-ffa450edef68
2005-02-05 06:24:20 +00:00
Brent Worden d53731afbe added fraction class and fraction formatting classes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@151479 13f79535-47bb-0310-9956-ffa450edef68
2005-02-05 05:49:45 +00:00
Phil Steitz fdbecfc0b9 Updated to reflect PR# 32538 changes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141514 13f79535-47bb-0310-9956-ffa450edef68
2004-12-06 06:03:01 +00:00
Phil Steitz b622f54ef7 Eliminate dup entry added by mistake in last commit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141508 13f79535-47bb-0310-9956-ffa450edef68
2004-12-05 17:42:36 +00:00
Phil Steitz a403c7da89 Updated for 1.0 release.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141506 13f79535-47bb-0310-9956-ffa450edef68
2004-12-05 17:21:30 +00:00
Phil Steitz 1f6963b660 Prepare for RC2.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141499 13f79535-47bb-0310-9956-ffa450edef68
2004-11-08 01:38:17 +00:00
Phil Steitz 9e6639abd6 Updated to reflect PR 31713 changes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141495 13f79535-47bb-0310-9956-ffa450edef68
2004-11-07 20:31:23 +00:00
Phil Steitz e2daf5fd17 Updated to reflect distribution package changes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141493 13f79535-47bb-0310-9956-ffa450edef68
2004-11-07 05:07:29 +00:00
Phil Steitz 9000bde94d Updated to reflect BigMatrix changes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141487 13f79535-47bb-0310-9956-ffa450edef68
2004-10-25 05:37:32 +00:00
Phil Steitz 6303d4f979 Fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141478 13f79535-47bb-0310-9956-ffa450edef68
2004-10-24 17:52:16 +00:00
Phil Steitz bcdc50d516 Pr #31860 fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141477 13f79535-47bb-0310-9956-ffa450edef68
2004-10-24 06:40:55 +00:00