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
f156491e83
Removed [lang] dependency.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141382 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 19:19:28 +00:00
Phil Steitz
4dc9b8ccb3
Eliminated [lang] dependency.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141381 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 19:00:19 +00:00
Phil Steitz
f5a52ac0b0
Eliminated [lang] dependency and local path reference.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141380 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:59:52 +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
Phil Steitz
fbae62101e
Added methods for computing variance using precomputed mean, javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141377 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:41:19 +00:00
Phil Steitz
96fc8f14c4
javadoc only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141376 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:39:08 +00:00
Phil Steitz
e3c0133202
Added missing method for computing variance from mean with no subarray specified.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141375 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:38:12 +00:00
Phil Steitz
af2937a3ee
Added methods allowing exact values to be set using string representations.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141374 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 04:49:24 +00:00
Phil Steitz
9ba5a237d7
Added tests for printStackTrace(), serialization.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141373 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 22:23:14 +00:00
Phil Steitz
2ac0eb8cd7
Eliminated [lang] dependency.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141372 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 22:21:36 +00:00
Phil Steitz
2f88509be4
Added test for getN() and evaluate/getResult consistency test for small samples.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141371 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 17:14:15 +00:00
Phil Steitz
65b57b6018
Removed tests for factory methods that have been removed.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141370 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 17:13:00 +00:00
Phil Steitz
27cbce332c
Added test to make sure NaN is returned when it should be.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141369 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 17:10:42 +00:00
Phil Steitz
43af865138
Changed getN() to return long.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141368 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 17:09:08 +00:00
Phil Steitz
5895dba6f5
Changed getN() to return long. Changed evalutate() to return NaN if sample size is less than 3 (consistent w/ getResult()).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141367 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 17:02:43 +00:00
Phil Steitz
9360c37834
Eliminated dependency on [logging].
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141366 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 16:07:07 +00:00
Phil Steitz
a4bde1dc48
Caught NoClassDefFound Error when DiscoverClass is not present, eliminating
...
runtime dependency on [discovery], [logging].
Removed factory method taking string class name (use of Class.ForName()).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141365 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 16:04:47 +00:00
Phil Steitz
78a6df915a
Catch NoClassDefFound Error when DiscoverClass not present, eliminating runtime dependency on [discovery], [logging]
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141364 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 15:59:14 +00:00
Phil Steitz
d5a2cabb81
Add evaluate/increment consistency test.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141363 13f79535-47bb-0310-9956-ffa450edef68
2004-07-07 12:50:50 +00:00
Phil Steitz
29c4a34635
Added evaluate method taking mean as a parameter. Changed implementation to wrap, rather than extend Variance.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141362 13f79535-47bb-0310-9956-ffa450edef68
2004-07-04 22:10:02 +00:00
Phil Steitz
23691122e6
Added evaluate method taking mean as a parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141361 13f79535-47bb-0310-9956-ffa450edef68
2004-07-04 22:09:07 +00:00
Phil Steitz
cecda770cb
Changed evaluate method to use embedded moments instead of duplicating code.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141360 13f79535-47bb-0310-9956-ffa450edef68
2004-07-04 22:06:07 +00:00
Phil Steitz
0f3a32dd90
Added incrementAll(double[]) methods.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141359 13f79535-47bb-0310-9956-ffa450edef68
2004-07-04 22:03:03 +00:00
Phil Steitz
ef551125c8
javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141358 13f79535-47bb-0310-9956-ffa450edef68
2004-07-04 09:02:36 +00:00
Phil Steitz
3f3c1b46ed
Made Sum instance local to evaluate. Improved javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141357 13f79535-47bb-0310-9956-ffa450edef68
2004-07-02 13:59:49 +00:00
Phil Steitz
610862cbbe
Made fields final.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141356 13f79535-47bb-0310-9956-ffa450edef68
2004-07-02 06:25:05 +00:00
Phil Steitz
bc5b99791c
Removed link to external definition, as formula has been added to javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141355 13f79535-47bb-0310-9956-ffa450edef68
2004-07-02 05:29:14 +00:00
Phil Steitz
b77e14987d
Made NaturalComparator member class static.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141354 13f79535-47bb-0310-9956-ffa450edef68
2004-07-02 05:27:41 +00:00
Phil Steitz
e403d2df9c
Added tests for NaN, infinite values, n=0,1.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141353 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 15:40:07 +00:00
Phil Steitz
0def426df9
Fixed, documented NaN handling; changed internal counter to long; replaced pow with *.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141352 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 15:39:15 +00:00
Phil Steitz
ee7756953e
Added tests for NaN, infinite values, n=0,1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141351 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 14:51:20 +00:00
Phil Steitz
c24f331cb6
Fixed, documented NaN handling.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141350 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 14:50:21 +00:00
Phil Steitz
c1062adc04
Added small sample tests for 2nd+ order moments.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141349 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 06:11:22 +00:00
Phil Steitz
c9ac892c42
Added tests for n=0, 1.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141348 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 06:08:22 +00:00
Phil Steitz
afe19bb846
Added tests for NaNs, infinite values.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141347 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 06:07:10 +00:00