Commit Graph

77 Commits

Author SHA1 Message Date
Luc Maisonobe adb783976a fixed typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@617489 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 12:51:46 +00:00
Luc Maisonobe 9fec47b79b added checks for integer overflows during double to Fraction conversion
JIRA: MATH-182

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@617482 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 12:02:12 +00:00
Luc Maisonobe 70118be7ee announced fix for MATH-181
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@617415 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 09:46:59 +00:00
Phil Steitz 41eb3cb7b7 Added one-way ANOVA implementation.
JIRA: MATH-173
Contributed by Bob MacCallum.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@615531 13f79535-47bb-0310-9956-ffa450edef68
2008-01-26 22:42:43 +00:00
Luc Maisonobe 39c77b17fd add change notice
JIRA: MATH-179

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@614321 13f79535-47bb-0310-9956-ffa450edef68
2008-01-22 21:02:53 +00:00
Luc Maisonobe 376834acf1 Added general methods to guess errors on estimated parameters
JIRA: MATH-176

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@613474 13f79535-47bb-0310-9956-ffa450edef68
2008-01-19 22:48:16 +00:00
Luc Maisonobe 7c7b56e9f3 MATH-164 add a special handling for multiplication of complex
numbers with infinite parts

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@610288 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 07:30:13 +00:00
Phil Steitz a3dc59a94d Added check and rescaling of expected counts to sum to sum of expected
counts if necessary in ChiSquare test.
JIRA: MATH-175
Reported and patched by Carl Anderson.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@610274 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 05:16:00 +00:00
Phil Steitz 458abe99c2 Changed Mean.evaluate() to use a two-pass algorithm, improving accuracy
by exploiting the the fact that this method has access to the full
array of data values.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@602306 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 02:59:53 +00:00
Phil Steitz 37bcdf4123 Deprecated abstract factory methods and made SummaryStatistics
a concrete classes. Pushed implementations up from SummaryStatisticsImpl.
Made implementations of statistics configurable via setters.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@602304 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 02:48:39 +00:00
Phil Steitz 2d4fe56383 Deprecated abstract factory methods and made DescriptiveStatistics a concrete
class. Pushed implementations up from DescriptiveStatisticsImpl and deprecated
this class. Made implementations of statistics configurable via setters.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@598133 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 05:27:05 +00:00
Phil Steitz 8f4b97cdcc Moved misplaced element.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@596176 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 01:43:14 +00:00
Phil Steitz bdb18d5d10 Merged most functions from ComplexUtils into Complex class, added
static factory method to Complex.
JIRA: MATH-171
Reported and patched by Niall Pemberton


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@596159 13f79535-47bb-0310-9956-ffa450edef68
2007-11-18 23:38:05 +00:00
Brent Worden 06da34fabc MATH-154. Added addAndCheck, mulAndCheck, and subAndCheck MathUtils methods for long integer arguments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@590577 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 07:23:01 +00:00
Brent Worden 6afeedf161 MATH-170. added SynchronizedDescriptiveStatistics class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@590564 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 05:38:58 +00:00
Luc Maisonobe ea14dd91da fixed numerous warnings in test code (unused fields/results, fields only set to null)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@566833 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 20:36:33 +00:00
Niall Pemberton f4febb7fed Correct missing = signs in due-to
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@561566 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 21:59:07 +00:00
Rahul Akolkar 9e66e1f2c9 TLP related blanket changes:
s:jakarta.apache.org/commons:commons.apache.org:
s/commons-user@jakarta.apache.org/user@commons.apache.org/
s/commons-dev@jakarta.apache.org/dev@commons.apache.org/
s/Jakarta Commons/Apache Commons/
s:svn.apache.org/viewcvs/jakarta/commons:svn.apache.org/viewvc/commons:
s:svn.apache.org/viewcvs.cgi/jakarta/commons:svn.apache.org/viewvc/commons:
s:svn.apache.org/viewvc/jakarta/commons:svn.apache.org/viewvc/commons:
s:svn.apache.org/repos/asf/jakarta/commons:svn.apache.org/repos/asf/commons:

I'd appreciate another pair of eyes on this. There are some categories we probably don't want to change ATM (hopefully, none of these snuck in):
 * Historicals (proposals etc.)
 * URLs that shouldn't change (DOCTYPE fragments etc.)
 * Test cases where namespace URLs matter etc. (I'll track any related nightly failures)


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@561230 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 04:17:09 +00:00
Phil Steitz b8b6c66e1c Modified NormalDistributionImpl.cumulativeProbablity to catch
MaxIterationsExceededException and return 0 or 1, resp. if the argument
is more than 20 standard deviations from the mean.

JIRA: MATH-167


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@558450 13f79535-47bb-0310-9956-ffa450edef68
2007-07-22 02:33:08 +00:00
Phil Steitz 7323a8a8b1 Added two-sample (binned comparison) ChiSquare test
JIRA: MATH-160
Thanks to: Matthias Hummel



git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@550285 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 21:10:19 +00:00
Phil Steitz 9104ab39e9 Added log function.
JIRA: MATH-158



git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@549299 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 23:39:50 +00:00
Phil Steitz 35414bc4f4 Increased default epsilon for Gamma, Beta function evaluation.
JIRA: MATH-166
Reported and patched by Lukas Theussl


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@549278 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 22:24:04 +00:00
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