Phil Steitz
df23d31d6f
Fixed some typos, formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141250 13f79535-47bb-0310-9956-ffa450edef68
2004-05-30 03:08:00 +00:00
Phil Steitz
1d5a4e2d3d
Modified to extent ContinuousDistrbutionAbstractTest. Improved coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141249 13f79535-47bb-0310-9956-ffa450edef68
2004-05-30 01:39:33 +00:00
Phil Steitz
dc8569711f
Added endpoint order check to cumulativeProbability(double, double).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141248 13f79535-47bb-0310-9956-ffa450edef68
2004-05-30 01:24:02 +00:00
Phil Steitz
b31439f3ec
Modified to extend ContinuousDistributionAbstractTest, improved coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141247 13f79535-47bb-0310-9956-ffa450edef68
2004-05-29 22:52:44 +00:00
Phil Steitz
8e995890ea
Initial commit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141246 13f79535-47bb-0310-9956-ffa450edef68
2004-05-29 22:51:32 +00:00
Phil Steitz
7c230bf2c1
Added tests for paired t-tests.
...
PR #29049
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141245 13f79535-47bb-0310-9956-ffa450edef68
2004-05-24 05:34:30 +00:00
Phil Steitz
c80262403c
Added paired difference stats necessary
...
to support paired t-test computations
efficiently.
PR #29049
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141244 13f79535-47bb-0310-9956-ffa450edef68
2004-05-24 05:33:42 +00:00
Phil Steitz
403e4e4956
Added support for paired t-tests.
...
PR #29049
Reported by: Joel Freyss
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141243 13f79535-47bb-0310-9956-ffa450edef68
2004-05-24 05:29:05 +00:00
Tim O'Brien
6c07bd13a8
Addressed exception "swallowing" in test coverage. From Phil's recent
...
email: "If the test case throws an unexpected exception, the test
should fail. ....[fix] these by changing the test method signature to
throws Exception. This also eliminates the need to import
MathException everywhere."
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141242 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 21:34:19 +00:00
Phil Steitz
2ad68ba544
Javadoc fixes missed in PR #29050 changes.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141241 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 05:45:11 +00:00
Phil Steitz
414788a045
Added test case for small samples, adjusted for PR #29050 changes.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141240 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 05:06:20 +00:00
Phil Steitz
2552cb1aee
Modified t-test procedures to allow samples as small
...
as 2 observations.
PR # 29050
Reported by: Joel Freyss
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141239 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 05:04:48 +00:00
Tim O'Brien
e0452e4d79
Pre Issue 29012, getKurtosisClass() did not have a tolerance; therefore,
...
any non-zero kurtosis was consistently mesokurtic. Instead of getting
into this level of detail, getKurtosisClass() has been removed, it is a
subjective measure not appropriate for DescStat.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141238 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 00:56:15 +00:00
Tim O'Brien
9459e748c8
ComplexFormat now handles situations where either the real or
...
imaginary part is NaN, POSITIVE_INFINITY, or NEGATIVE_INFINITY.
Three new tests were added to address these situations.
PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141237 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 00:52:32 +00:00
Tim O'Brien
56d545478a
Got rid of a number of those pesky "Auto-generated catch block" comments from test code.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141236 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 00:33:41 +00:00
Tim O'Brien
410fb9d6ff
Removed a series of unused imports in various classes both source and test.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141235 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 00:30:01 +00:00
Phil Steitz
384e07ad45
Improved efficiency.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141234 13f79535-47bb-0310-9956-ffa450edef68
2004-05-22 19:59:22 +00:00
Phil Steitz
092b61c11f
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141233 13f79535-47bb-0310-9956-ffa450edef68
2004-05-21 14:21:42 +00:00
Brent Worden
b98f50b1c9
Fixed javadoc warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141232 13f79535-47bb-0310-9956-ffa450edef68
2004-05-19 15:06:44 +00:00
Brent Worden
f4e161390d
Documented some runtime exceptions.
...
PR: 29013
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141231 13f79535-47bb-0310-9956-ffa450edef68
2004-05-19 14:16:32 +00:00
Phil Steitz
da64b62f7e
Added tests for getSummary() added to SummaryStatistics.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141230 13f79535-47bb-0310-9956-ffa450edef68
2004-05-18 04:21:28 +00:00
Phil Steitz
1ed7683a75
Added getSummary method returning StatisticalSummaryValues VO.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141229 13f79535-47bb-0310-9956-ffa450edef68
2004-05-18 04:19:53 +00:00
Phil Steitz
b224cbfcff
Initial commit -- value object representing statistical summary.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141228 13f79535-47bb-0310-9956-ffa450edef68
2004-05-18 04:17:29 +00:00
Phil Steitz
c434c70902
Added tests corresponding to examples in user guide.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141227 13f79535-47bb-0310-9956-ffa450edef68
2004-05-18 04:08:38 +00:00
Phil Steitz
00865f38c8
javadoc typos.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141223 13f79535-47bb-0310-9956-ffa450edef68
2004-05-11 02:19:08 +00:00
Phil Steitz
73812e41db
Modified to extend DiscreteDistributionAbstractTest. Added degenerate test cases.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141222 13f79535-47bb-0310-9956-ffa450edef68
2004-05-11 02:12:11 +00:00
Phil Steitz
cd6d71b967
Initial commit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141221 13f79535-47bb-0310-9956-ffa450edef68
2004-05-11 02:09:14 +00:00
Phil Steitz
38293084be
Added consistency checks for constructor parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141220 13f79535-47bb-0310-9956-ffa450edef68
2004-05-11 02:07:58 +00:00
Phil Steitz
617f230171
Improved documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141219 13f79535-47bb-0310-9956-ffa450edef68
2004-05-11 02:05:25 +00:00
Phil Steitz
c6a3107208
Improved documentation. Added x0 <= x1 check in cumulativeProbability. Required p < 1 in inverseCumulativeProbability.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141218 13f79535-47bb-0310-9956-ffa450edef68
2004-05-11 02:04:21 +00:00
Phil Steitz
0e424881ff
Changed binomial coeffient computations to allow n = k = 0,
...
returning 1 in this case. This is standard and also required
for degenerate hypergeometric distribution computations.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141217 13f79535-47bb-0310-9956-ffa450edef68
2004-05-09 04:36:09 +00:00
Brent Worden
21314a8b57
Replaced normal CDF routine with one based on the error function.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141214 13f79535-47bb-0310-9956-ffa450edef68
2004-05-05 19:59:11 +00:00
Phil Steitz
80b101bea5
Removed pending license investigation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141213 13f79535-47bb-0310-9956-ffa450edef68
2004-05-05 12:32:45 +00:00
Brent Worden
84839d3f05
Added unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141212 13f79535-47bb-0310-9956-ffa450edef68
2004-05-04 13:15:47 +00:00
Brent Worden
631377f86b
Removed failing test. Should never have been committed.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141211 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 23:16:39 +00:00
Brent Worden
d522e47b8e
Added some unit tests for descriptive statistics. Fixed bug dealing with resizing to infinite window size.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141210 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 14:32:25 +00:00
Phil Steitz
113c99fc49
Changed chi-square tests to pass long[] arrays of observed counts.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141209 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 03:08:08 +00:00
Phil Steitz
50bda14d38
Initial commit of tests replacing TestStatisticTest.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141208 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 03:04:54 +00:00
Phil Steitz
a878b64c1d
Initial commit of code split off from TestStatistic.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141207 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 03:03:21 +00:00
Phil Steitz
257ee19b38
Initial commit of code split off from TestStatistic. Changed observed vectors to be long[] arrays and added support for independence tests using 2-way tables.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141206 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 03:02:25 +00:00
Phil Steitz
3e97a3afbb
Removed file to be replaced by TTestTest, ChiSquareTestTest.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141205 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 02:57:08 +00:00
Phil Steitz
81da2fafa1
Removed file to be replaced by TTest, ChiSquareTest.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141204 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 02:54:56 +00:00
Phil Steitz
8490149ab0
Removed file to be replaced by TTestImpl, ChiSquareTestImpl.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141203 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 02:54:09 +00:00
Brent Worden
063bb6b880
Unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141202 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 16:51:52 +00:00
Brent Worden
c415dd79ae
Fixed some checkstyle warnings. Added some unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141201 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 16:42:34 +00:00
Brent Worden
4952dd85d6
Fixed some checkstyle warnings. Changed checkstyle settings to use APL 2.0.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141200 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 04:37:59 +00:00
Brent Worden
9b7bab4288
Added user guide entry for continued fractions.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141199 13f79535-47bb-0310-9956-ffa450edef68
2004-04-26 20:47:07 +00:00
Brent Worden
1d0286e297
Touched up the javadoc comments.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141197 13f79535-47bb-0310-9956-ffa450edef68
2004-04-26 19:15:48 +00:00
Brent Worden
04e808a26e
Added missing package.html files and added APL 2.0 to existing files.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141196 13f79535-47bb-0310-9956-ffa450edef68
2004-04-26 18:28:18 +00:00
Phil Steitz
7c918e3c65
Fixed formatting, eliminated swallowed exceptions.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141194 13f79535-47bb-0310-9956-ffa450edef68
2004-04-25 19:38:17 +00:00
Phil Steitz
3064e53dab
Implemented addValue(double) using DynaBeans.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141191 13f79535-47bb-0310-9956-ffa450edef68
2004-04-24 21:43:26 +00:00
Phil Steitz
576505a290
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141190 13f79535-47bb-0310-9956-ffa450edef68
2004-04-24 21:41:02 +00:00
Phil Steitz
683a027239
Replace deprecated TreeBag with collections 3.0 version.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141189 13f79535-47bb-0310-9956-ffa450edef68
2004-04-24 18:51:01 +00:00
Brent Worden
0505d2a32b
Added exceptions to javadoc comments.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141187 13f79535-47bb-0310-9956-ffa450edef68
2004-04-23 19:50:27 +00:00
Brent Worden
96840a4a34
Added some parameter javadoc comments.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141186 13f79535-47bb-0310-9956-ffa450edef68
2004-04-23 19:30:47 +00:00
Brent Worden
aa676aa690
Added javadoc comments replete with Mathworld references.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141185 13f79535-47bb-0310-9956-ffa450edef68
2004-04-23 18:51:03 +00:00
Brent Worden
c952896cfa
Removed some TODO comments.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141184 13f79535-47bb-0310-9956-ffa450edef68
2004-04-23 18:20:12 +00:00
Brent Worden
c82f497b9a
Fixed a TODO by addid a isStrictlyIncreasing method. This can be refactored later into a more reusable location.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141183 13f79535-47bb-0310-9956-ffa450edef68
2004-04-23 18:16:06 +00:00
Mark R. Diggory
8975e90c9a
BeanListUnivariateImpl was misplaced during the move.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141181 13f79535-47bb-0310-9956-ffa450edef68
2004-04-20 21:02:35 +00:00
Mark R. Diggory
5afef994a9
Sorry, placed it in the wrong directory
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141180 13f79535-47bb-0310-9956-ffa450edef68
2004-04-20 21:02:21 +00:00
Mark R. Diggory
d01b3bb2f9
BeanListUnivariateImpl was misplaced during the move.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141179 13f79535-47bb-0310-9956-ffa450edef68
2004-04-20 21:01:35 +00:00
Phil Steitz
75d34c629d
Added missing fail stmnts, fixed index error
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141178 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 12:00:41 +00:00
Phil Steitz
9f1299ec95
Fixed error in copyright notic.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141177 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 05:26:10 +00:00
Phil Steitz
2e884beb2b
Added tests for AbstractUnivariateStatistic.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141176 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 05:23:16 +00:00
Phil Steitz
f5a510d4f0
Reordered checks in test() method to avoid NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141175 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 05:22:11 +00:00
Phil Steitz
cbb93d0d77
Eliminated tabs.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141174 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 04:22:09 +00:00
Phil Steitz
bbe1c785a7
Added tests for indicator functions.
...
Contributed by: Christopher Schuck
Pr #28343
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141173 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 04:03:39 +00:00
Phil Steitz
f7057c3ffa
Moved univariate statistical aggregates into univariate package.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141172 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 02:27:50 +00:00
Phil Steitz
6e8426b2c5
Moved BivariateRegression to multivariate subpackage.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141171 13f79535-47bb-0310-9956-ffa450edef68
2004-04-11 21:52:28 +00:00
Phil Steitz
c51d98d8bd
Fixed imports.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141170 13f79535-47bb-0310-9956-ffa450edef68
2004-04-11 20:42:33 +00:00
Phil Steitz
f7794b5b99
Moved TestStatisticTest to new inference package.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141169 13f79535-47bb-0310-9956-ffa450edef68
2004-04-11 20:30:46 +00:00
Phil Steitz
60c2400e71
Fixed package declarations.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141168 13f79535-47bb-0310-9956-ffa450edef68
2004-04-11 20:25:16 +00:00
Phil Steitz
2a9568f095
Created inference package, moved statistical tests there.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141167 13f79535-47bb-0310-9956-ffa450edef68
2004-04-11 20:19:14 +00:00
Phil Steitz
99352b4f1d
Improved verification logic in test().
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141166 13f79535-47bb-0310-9956-ffa450edef68
2004-04-11 19:39:10 +00:00
Phil Steitz
b6d8e5669e
Javadoc. Fixed broken / malformed links.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141165 13f79535-47bb-0310-9956-ffa450edef68
2004-04-11 19:00:45 +00:00
Brent Worden
1c5a146255
Newton's method using the new differentiable interface.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141161 13f79535-47bb-0310-9956-ffa450edef68
2004-04-08 21:19:17 +00:00
Brent Worden
2898b78067
Added serveral javadoc comments. Added constructors to the matrix exception classes to mimic the existing math exceptions.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141160 13f79535-47bb-0310-9956-ffa450edef68
2004-04-08 20:46:01 +00:00
Phil Steitz
4cec2e0c71
Added preMultiply(Matrix) tests and modified preMultiply(double[]) tests to
...
match new interface.
Added R-verified determinant tests.
Added R-verified lu decompostion tests and tests verifying
that lu decompositions satisfy the lu matrix equation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141159 13f79535-47bb-0310-9956-ffa450edef68
2004-04-08 07:08:22 +00:00
Phil Steitz
a387134c0d
Added RealMatrix preMultiply(RealMatrix).
...
Modified preMultiply(double[]) to return a double[].
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141158 13f79535-47bb-0310-9956-ffa450edef68
2004-04-08 07:02:55 +00:00
Phil Steitz
3a35f193cc
Modified luDecompose to require that the matrix be square.
...
Added RealMatrix preMultiply(RealMatrix).
Modified preMultiply(double[]) to return a double[].
Renamed private pivot[] array to permutation[].
Exposed lu decomposition matrix and associated permutation
array as protected properties.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141157 13f79535-47bb-0310-9956-ffa450edef68
2004-04-08 07:01:17 +00:00
Phil Steitz
95af96d821
Improved Javadoc and fixed comparison error in indicator(short).
...
Contributed by: Christopher Schuck
Pr #28194
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141154 13f79535-47bb-0310-9956-ffa450edef68
2004-04-05 03:47:49 +00:00
Phil Steitz
b465bb15ef
Add tests to verify InvalidMatrixException is thrown by inverse() for singular or non-square matrices.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141152 13f79535-47bb-0310-9956-ffa450edef68
2004-04-03 22:19:24 +00:00
Phil Steitz
70b35ebdcc
Javadoc fixes, advertise correct exception in inverse().
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141151 13f79535-47bb-0310-9956-ffa450edef68
2004-04-03 22:18:04 +00:00
Phil Steitz
bba015b90b
Removed misleading javadoc comment on derivative value constraints.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141150 13f79535-47bb-0310-9956-ffa450edef68
2004-04-03 03:05:33 +00:00
Phil Steitz
6f44b39611
Removed InterpolatorTest, replaced by SplineInterpolatorTest.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141149 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 21:43:35 +00:00
Phil Steitz
5f543b9e93
Removed CubicSplineFunction, replaced by PolynomialSplineFunction.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141148 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 21:39:21 +00:00
Phil Steitz
ba1a9adff1
Modified tests to use derivative methods.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141147 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 21:34:41 +00:00
Phil Steitz
4ceb3413fb
Added method to check that two double arrays are equal.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141146 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 21:30:08 +00:00
Phil Steitz
36fcb5c54d
Fixed implementation, improved documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141145 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 21:16:21 +00:00
Phil Steitz
0a46550083
Modified constructor to copy input coefficients array.
...
Changed evaluation to use Horner's method.
Exposed coefficients as read-only property
Implemented DifferentiableUnivariateRealFunction interfaces
Dropped redundant firstDerivative, secondDerivative methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141144 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 21:08:48 +00:00
Phil Steitz
e7ef3aa7ab
Initial commit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141143 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 20:59:52 +00:00
Phil Steitz
dff74f5748
Initial commit. Replaces InterpolatorTest.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141142 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 20:58:59 +00:00
Phil Steitz
2203f75783
Initial commit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141141 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 20:58:11 +00:00
Phil Steitz
f3676b5011
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141140 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 22:39:56 +00:00
Phil Steitz
2457c77035
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141139 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 21:57:19 +00:00
Phil Steitz
a6da5c1c93
Removed unused import. Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141138 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 21:56:26 +00:00
Phil Steitz
b8561416a7
Override getTolerance() to work with correct target value.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141136 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 04:29:20 +00:00
Phil Steitz
2adb974fd0
Added another test, fixed reference to target values.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141135 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 04:26:54 +00:00
Phil Steitz
f4c6535eca
Adjusted target values for product, log sum and variance based on exact computations using BigDecimal, comparison to R. Changed percentile targets to match implemented algorithm.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141134 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 04:24:17 +00:00
Phil Steitz
d39adf6803
Javadoc only. Added reference link.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141133 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 00:23:29 +00:00
Phil Steitz
f630d0f9ae
Corrected javadoc, minor improvment to computation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141132 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 00:22:26 +00:00
Phil Steitz
f5ae32413a
Corrected javadoc, minor improvment to computation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141131 13f79535-47bb-0310-9956-ffa450edef68
2004-03-20 23:55:19 +00:00
Brent Worden
4b4b6aed43
new approach to testing against certified data sets.
...
PR: 27692
Obtained from: Brent Worden
Submitted by: Brent Worden
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141130 13f79535-47bb-0310-9956-ffa450edef68
2004-03-18 05:52:37 +00:00
Phil Steitz
4a5d8f8a00
Added tests based on NIST definition.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141129 13f79535-47bb-0310-9956-ffa450edef68
2004-03-13 20:03:16 +00:00
Phil Steitz
d29a69613e
Renamed internal field, added algorithm documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141128 13f79535-47bb-0310-9956-ffa450edef68
2004-03-13 20:02:28 +00:00
Phil Steitz
6ac0ed2d8b
Fixed code and javadoc to advertise the right exceptions, cleaned up formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141127 13f79535-47bb-0310-9956-ffa450edef68
2004-03-08 04:22:12 +00:00
Phil Steitz
e9c7ed28a6
Replaced low-accuracy textbook comparison values with values from R.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141126 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 21:55:18 +00:00
Phil Steitz
bd460b62fb
Stopped swallowing MathExceptions, cleaned up formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141125 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 20:47:06 +00:00
Phil Steitz
b3641de2a7
Fixed javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141124 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 16:39:38 +00:00
Phil Steitz
e10e6db2e3
Changed to extend RetryTestCase to allow retries when statistical tests fail.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141123 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 16:32:44 +00:00
Phil Steitz
eff1e73685
Initial commit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141122 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 16:29:38 +00:00
Phil Steitz
0a0c7e3659
Dropped extraneous line added in error with last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141121 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 02:21:09 +00:00
Phil Steitz
7e6d5d5d54
Added test cases corresponding to examples in the User Guide.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141120 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 00:57:11 +00:00
Phil Steitz
3de23df528
Fixed error in getCumFreq (use custom comparator when one is supplied). Removed tabs.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141118 13f79535-47bb-0310-9956-ffa450edef68
2004-03-07 00:54:31 +00:00
Phil Steitz
e5bc149a2a
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141116 13f79535-47bb-0310-9956-ffa450edef68
2004-03-04 04:25:09 +00:00
Tim O'Brien
1ea467cb36
Added JavaDoc to the Complex class, still more work to be done.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141112 13f79535-47bb-0310-9956-ffa450edef68
2004-02-29 19:52:01 +00:00
Tim O'Brien
4ae88357f2
Added Javadoc to the ComplexFormat class
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141111 13f79535-47bb-0310-9956-ffa450edef68
2004-02-29 19:40:39 +00:00
Brent Worden
d948617ae5
PR: 27243
...
Obtained from: Scott Duchin
Submitted by: Brent Worden
Adding Scott's unit test. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27243 for details.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141109 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 21:58:33 +00:00
Phil Steitz
e884e834f8
javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141105 13f79535-47bb-0310-9956-ffa450edef68
2004-02-22 22:01:29 +00:00
Phil Steitz
466c8f4211
Updated license to 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141104 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 21:35:18 +00:00
Phil Steitz
424d644417
javadoc, error message cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141103 13f79535-47bb-0310-9956-ffa450edef68
2004-02-20 06:22:39 +00:00
Phil Steitz
f41527455c
Added degree() method, degree checking in derivative computations, made constructor copy coefficient array, cleaned up javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141102 13f79535-47bb-0310-9956-ffa450edef68
2004-02-20 06:17:54 +00:00
Brent Worden
70106770ea
fixed spelling error: cummulative -> cumulative.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141100 13f79535-47bb-0310-9956-ffa450edef68
2004-02-18 04:04:18 +00:00
Phil Steitz
a3c8daf76c
Restored original copyright date.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141099 13f79535-47bb-0310-9956-ffa450edef68
2004-02-18 03:24:20 +00:00
Phil Steitz
31a89ac8db
Restored test code inadvertently deleted with last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141098 13f79535-47bb-0310-9956-ffa450edef68
2004-02-17 04:33:16 +00:00
Phil Steitz
9267ae3bb2
Fixed logic in bean transformer tests to match API.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141097 13f79535-47bb-0310-9956-ffa450edef68
2004-02-16 07:04:04 +00:00
Phil Steitz
11da77c693
Stopped header comments from confusing javadoc tool.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141096 13f79535-47bb-0310-9956-ffa450edef68
2004-02-16 06:32:47 +00:00
Phil Steitz
1d2c37a6ce
Commented out sysouts.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141095 13f79535-47bb-0310-9956-ffa450edef68
2004-02-16 06:30:21 +00:00
Phil Steitz
0edbfb6b89
Added load(double[]) method to EmpiricalDistribution.
...
Contributed by Piotr Kochanski
PR # 26772
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141092 13f79535-47bb-0310-9956-ffa450edef68
2004-02-12 04:35:09 +00:00
Tim O'Brien
9ca4863232
*** empty log message ***
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141090 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 22:09:28 +00:00
Phil Steitz
21ef26838d
Refactored Frequency to support cummulative frequency counts and percentages. Also eliminated the name property.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141089 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 19:51:25 +00:00
Phil Steitz
f1e2670f72
Added bound to simulation loop in nextPoisson().
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141088 13f79535-47bb-0310-9956-ffa450edef68
2004-01-31 06:58:46 +00:00
Mark R. Diggory
9698abfb3b
Removing default generated @author Administrator tags from Eclipse
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141080 13f79535-47bb-0310-9956-ffa450edef68
2004-01-29 16:54:05 +00:00
Mark R. Diggory
de37f31a2a
Actually, we should really be switching to Apache license 2.0.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141079 13f79535-47bb-0310-9956-ffa450edef68
2004-01-29 16:52:41 +00:00
Phil Steitz
f6458ee9d0
Replaced unnecessary bin search with direct computation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141078 13f79535-47bb-0310-9956-ffa450edef68
2004-01-29 06:26:14 +00:00
Phil Steitz
90be3c8e9d
Speed up, clean up.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141077 13f79535-47bb-0310-9956-ffa450edef68
2004-01-29 05:27:54 +00:00
Phil Steitz
36d2a54a37
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141076 13f79535-47bb-0310-9956-ffa450edef68
2004-01-29 04:58:36 +00:00
Tim O'Brien
ec5fb0ca3d
Added a simple formatting class for Complex numbers.
...
I had considered just implementing toString() on the complex
class, but I decided aginst it because some fields prefer
"j" to "i". This ComplexFormat class is very straightforward,
will a number of TODOs, it is accompanied by a 10
tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141075 13f79535-47bb-0310-9956-ffa450edef68
2004-01-29 04:32:27 +00:00
Mark R. Diggory
19080d7f09
Happy New Year, updating all license years to 2004
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141074 13f79535-47bb-0310-9956-ffa450edef68
2004-01-29 00:49:03 +00:00
Tim O'Brien
204063d317
RealMatrix now throws two more runtime exceptions
...
InvalidMatrixException and MatrixIndexException
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141070 13f79535-47bb-0310-9956-ffa450edef68
2004-01-28 20:15:03 +00:00
Phil Steitz
00cfd0a1ae
Eliminated unecessary first moment computations.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141068 13f79535-47bb-0310-9956-ffa450edef68
2004-01-27 02:43:44 +00:00
Mark R. Diggory
9dbee2f04e
PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24962
...
Obtained from: sergei skarupo
Refactored all sign methods to indicator.
Created new Sign methods per wolfram specs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141067 13f79535-47bb-0310-9956-ffa450edef68
2004-01-26 19:41:16 +00:00
Phil Steitz
fcde02ecce
Added Normal Distribution implementations and tests contributed by Piotr Kochanski.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141065 13f79535-47bb-0310-9956-ffa450edef68
2004-01-26 03:04:31 +00:00
Phil Steitz
1b96f28e41
Refactored statistical aggregates to separate stored, storeless implementations. Changed internal sample size counters to longs.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141064 13f79535-47bb-0310-9956-ffa450edef68
2004-01-25 21:30:41 +00:00
Phil Steitz
985aad0b1a
javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141063 13f79535-47bb-0310-9956-ffa450edef68
2004-01-18 03:45:02 +00:00
Phil Steitz
cc63455b3e
Replace deprecated method.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141061 13f79535-47bb-0310-9956-ffa450edef68
2004-01-15 07:31:44 +00:00
Phil Steitz
dd670b29cf
Updated copyright date (after BZ #25972 changes).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141059 13f79535-47bb-0310-9956-ffa450edef68
2004-01-15 05:22:08 +00:00
William Barker
98e2fabf90
Fix URL -> File conversion in the test.
...
I'd forgotten that I had added this to my code when looking at BZ #25972 .
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141056 13f79535-47bb-0310-9956-ffa450edef68
2004-01-11 20:50:11 +00:00
Phil Steitz
d0ac3d2a5f
Modified tests to reflect changes addressing PR #25972 .
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141052 13f79535-47bb-0310-9956-ffa450edef68
2004-01-11 07:26:51 +00:00
Phil Steitz
e8098d425e
Refactored file handling methods to eliminate use of URL.toFile(). Addressing PR #25972 , reported by Bill Barker.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141051 13f79535-47bb-0310-9956-ffa450edef68
2004-01-11 07:24:30 +00:00