Commit Graph

491 Commits

Author SHA1 Message Date
Phil Steitz ef2faa199c Added row and column matrix accessors. Pr #30897.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141462 13f79535-47bb-0310-9956-ffa450edef68
2004-10-09 22:39:22 +00:00
Phil Steitz 984e175bb8 Added submatrix accessors.
Pr #30897
Submitted by: Kim van der Linde
Reviewed by: Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141460 13f79535-47bb-0310-9956-ffa450edef68
2004-10-09 21:15:56 +00:00
Phil Steitz 517e5feaf6 Improved performance of logGamma.
Pr #31522
Submitted by: Ken Geis
Reviewd by: Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141455 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 05:53:18 +00:00
Phil Steitz d432451865 Renamed .univariate -> .descriptive, .multivariate -> .regression
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141454 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 05:08:21 +00:00
Brent Worden c528c90ae9 Added locale support to complex format. Added test cases for specific locales.
PR: 31325


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141452 13f79535-47bb-0310-9956-ffa450edef68
2004-09-21 04:51:08 +00:00
Brent Worden 7ae35df8c0 Added locale support to complex format. Added test cases for specific locales.
PR: 31325


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141451 13f79535-47bb-0310-9956-ffa450edef68
2004-09-21 04:45:55 +00:00
Phil Steitz ff0fe83175 Added test case to ensure Integers passed to addValue as Object references are converted to Longs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141450 13f79535-47bb-0310-9956-ffa450edef68
2004-09-21 03:03:54 +00:00
Phil Steitz 355e29867d Modified addValue(Object) to convert Integers to Longs, completing (hopefully ;-) fix of problem with integral type conversions reported to commons-dev by Jon Langlois.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141449 13f79535-47bb-0310-9956-ffa450edef68
2004-09-21 03:02:34 +00:00
Phil Steitz 9ffd5866c4 Fixed error computing cumulative frequencies when actual parameter is an Integer. Reported to commons-dev list by Jon Langlois.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141445 13f79535-47bb-0310-9956-ffa450edef68
2004-09-19 22:47:27 +00:00
Phil Steitz 1f0fde531a Changed matrix indexing to be 0-based.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141442 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 01:19:23 +00:00
Phil Steitz b39b6c7075 Made standard matrix entry addressing explicit in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141440 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 21:26:11 +00:00
Phil Steitz 411c6c9b2a Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141439 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 16:23:11 +00:00
Phil Steitz 3f5862a60e Made assumption about precomputed mean explicit in javadoc. Added missing method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141437 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 15:54:39 +00:00
Phil Steitz 45fe7d2981 Javadoc. Made assumption about precomputed mean explicit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141436 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 15:53:52 +00:00
Phil Steitz 0715a11187 Javadoc. Made assumption about precomputed mean in variance computations explicit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141435 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 15:51:39 +00:00
Phil Steitz 68695e53fe Renamed BivariateRegression to SimpleRegression.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141434 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 15:19:32 +00:00
Phil Steitz ea75da05a0 Fixed javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141432 13f79535-47bb-0310-9956-ffa450edef68
2004-08-22 01:42:58 +00:00
Phil Steitz ab89221197 Removed method marked for removal prior to release.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141431 13f79535-47bb-0310-9956-ffa450edef68
2004-08-22 01:41:30 +00:00
Phil Steitz 61c175d0ef Fixed two errors reported on commons-user / commons-dev:
1. addValue(object) and getXxx methods failing or returning incorrect results for Integer arguments when the freq table is not empty
2. getXxx methods failing / returning inconsistent values when invoked on an empty table.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141420 13f79535-47bb-0310-9956-ffa450edef68
2004-08-12 15:33:39 +00:00
Phil Steitz 77b718485c Removed boolean equalVariances flag from t-test API.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141418 13f79535-47bb-0310-9956-ffa450edef68
2004-08-02 04:20:09 +00:00
Phil Steitz b134bf41f7 Corrected inverseCumulativeProbability(0).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141417 13f79535-47bb-0310-9956-ffa450edef68
2004-07-25 16:29:25 +00:00
Phil Steitz f078965871 Changed inverseCumulativeProbability to return correct values for p=0,1 as discussed on commons-dev.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141412 13f79535-47bb-0310-9956-ffa450edef68
2004-07-24 21:41:37 +00:00
Phil Steitz 2bc3611d28 Changed inverseCumulativeProbability to correctly handle p=0,1 as discussed on commons-dev.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141410 13f79535-47bb-0310-9956-ffa450edef68
2004-07-24 20:43:29 +00:00
Phil Steitz a33aa39627 Changed implementation to return correct inverse probabilities for p=0,1 (per discussion on commons-dev).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141409 13f79535-47bb-0310-9956-ffa450edef68
2004-07-23 05:22:36 +00:00
Phil Steitz 5316724b7e Changed to allow p=1 as argument to inverseCumulativeProbability.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141408 13f79535-47bb-0310-9956-ffa450edef68
2004-07-23 05:20:26 +00:00
Phil Steitz 191ec1a14d javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141406 13f79535-47bb-0310-9956-ffa450edef68
2004-07-22 02:34:25 +00:00
Phil Steitz f457a74d08 Add test for getN.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141405 13f79535-47bb-0310-9956-ffa450edef68
2004-07-22 02:32:25 +00:00
Phil Steitz d1a8e962cf Added test for toString().
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141404 13f79535-47bb-0310-9956-ffa450edef68
2004-07-22 02:30:01 +00:00
Phil Steitz 078e590d85 Fixed typo in toString(), added median.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141403 13f79535-47bb-0310-9956-ffa450edef68
2004-07-22 02:29:21 +00:00
Phil Steitz 92ad686080 Added test class for PolynomialSplineFunction.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141401 13f79535-47bb-0310-9956-ffa450edef68
2004-07-20 12:57:22 +00:00
Phil Steitz 020a06aab8 javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141400 13f79535-47bb-0310-9956-ffa450edef68
2004-07-20 12:55:01 +00:00
Phil Steitz 712cfcd103 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141399 13f79535-47bb-0310-9956-ffa450edef68
2004-07-19 00:01:05 +00:00
Phil Steitz 9a5b335e42 Changed some methods to return interface types. Improved javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141398 13f79535-47bb-0310-9956-ffa450edef68
2004-07-18 23:57:11 +00:00
Phil Steitz 5bc7adf6b2 Added constructor.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141397 13f79535-47bb-0310-9956-ffa450edef68
2004-07-18 05:39:30 +00:00
Phil Steitz 2893f9bfdd Moved instance field initialization into constructor.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141396 13f79535-47bb-0310-9956-ffa450edef68
2004-07-18 05:34:26 +00:00
Phil Steitz 4ecbafad32 Changed wrapped Variance instance to private.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141395 13f79535-47bb-0310-9956-ffa450edef68
2004-07-18 04:42:02 +00:00
Phil Steitz a94d386979 Changed implementation to wrap, rather than extend SumOfLogs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141394 13f79535-47bb-0310-9956-ffa450edef68
2004-07-18 04:37:08 +00:00
Phil Steitz 8c57bad833 Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141393 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 22:10:38 +00:00
Phil Steitz 219db32c27 Added geometric mean to StatUtils.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141392 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 22:01:39 +00:00
Phil Steitz eb6fb6cda4 -Changed UnivariateRealFunction.solve() to throw FunctionEvaluationException.
-Changed UnivariateRealSolver.solve() to throw more specific exceptions:
  ConvergenceException if max iterations is exceeded
  IllegalArgumentException if endpoints do not (appear to) bracket a root
  FunctionEvaluationException if an error occurs evaluating the function
-Changed UnivariateRealSolver setters to throw IllegalArgumentException
 instead of MathException when input property values are out of range.
-Changed AbstractContinuousDistribution.inverseCumulativeProbability to handle
 corner cases where solution equals domain lower or upper bound.
-Improved javadoc.
-Improved test coverage.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141391 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:19:39 +00:00
Phil Steitz b03610041d Dropped serialization.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141390 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:17:48 +00:00
Phil Steitz b3588619ae Added argumentless constructor.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141389 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:14:02 +00:00
Phil Steitz 2bf0772fff Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141388 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:12:52 +00:00
Phil Steitz c1e905742a Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141387 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 19:55:32 +00:00
Phil Steitz c267aedbf0 Renamed RealSolverTest to BrentSolverTest.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141386 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 19:49:02 +00:00
Phil Steitz 24a29e0177 Added FunctionEvaluationException and test class.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141385 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 19:41:05 +00:00
Phil Steitz f2a78ef3b1 Renamed ComplexMath to ComplexUtils.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141384 13f79535-47bb-0310-9956-ffa450edef68
2004-07-12 00:27:09 +00:00
Phil Steitz d6b8609c98 Removed redundant null check.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141383 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 23:39:08 +00:00
Phil Steitz 6251c12a57 Changed to extend RuntimeException, removing [lang] dependency.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141379 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:43:44 +00:00
Phil Steitz 75dc4f119a Added tests for methods computing variance from mean, removed obsolete tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141378 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:42:07 +00:00