Commit Graph

799 Commits

Author SHA1 Message Date
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
Phil Steitz 2559dc40db Documented and fixed NaN handling.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141346 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 06:06:13 +00:00
Phil Steitz f776bd2be9 javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141345 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 05:42:51 +00:00
Phil Steitz ee290a0a4a Added tests for StatisticalSummaryValues.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141344 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 02:21:33 +00:00
Phil Steitz 043e97c9fe Implemented equals and hashcode.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141343 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 02:18:22 +00:00
Phil Steitz d7bc4a2d8e javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141342 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 02:14:17 +00:00
Phil Steitz 6e21d23996 Improved javadoc, simplified implemenentation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141341 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 19:37:51 +00:00
Phil Steitz 0ad427869d Added tests for second, third, fourth moments.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141340 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 19:33:38 +00:00
Phil Steitz 1916ebe30a Added tests to make sure n=0 results in NaN, n=1 returns 0.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141339 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 23:34:22 +00:00
Phil Steitz 6a3874abd5 Improved javadoc, simplified implementation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141338 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 23:33:27 +00:00
Phil Steitz eebb5b0c45 Added test to ensure NaN is returned for n=0, and 0 for n=1.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141337 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 22:42:37 +00:00
Phil Steitz 653035b434 Improved javadoc, simplified implementation, ensured NaN is returned when n=0.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141336 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 22:41:27 +00:00
Phil Steitz 51ca427022 Added more tests for bad input data.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141335 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 22:09:07 +00:00
Phil Steitz 2e54805bf5 Removed dead code.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141334 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 22:08:02 +00:00
Phil Steitz 7cee8c8a98 Removed dead code.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141333 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 21:20:21 +00:00
Brent Worden b62121fdab regenerated Ant script using relative paths.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141332 13f79535-47bb-0310-9956-ffa450edef68
2004-06-24 20:45:04 +00:00
Brent Worden c28fd51e88 Fixed javadoc, checkstyle, and link warnings. Made some corrections and additions to the user guide.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141331 13f79535-47bb-0310-9956-ffa450edef68
2004-06-23 16:26:18 +00:00
Brent Worden 8d1b142b00 regenerated Ant script; dependencies were removed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141330 13f79535-47bb-0310-9956-ffa450edef68
2004-06-23 13:43:23 +00:00
Phil Steitz 8a52cbfdf8 Dropped [collections] dependency.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141329 13f79535-47bb-0310-9956-ffa450edef68
2004-06-20 16:54:22 +00:00
Phil Steitz f64734e872 Changed implementation to use TreeMap directly, eliminating [collections] depenency.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141328 13f79535-47bb-0310-9956-ffa450edef68
2004-06-20 16:53:17 +00:00
Phil Steitz 1b8645f8d1 Javadoc, formatting.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141327 13f79535-47bb-0310-9956-ffa450edef68
2004-06-20 02:54:05 +00:00
Phil Steitz 328e70e319 Fixed license header, added missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141326 13f79535-47bb-0310-9956-ffa450edef68
2004-06-20 01:50:18 +00:00
Phil Steitz a2e44f7732 Added tests for special values, quantile range checking.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141325 13f79535-47bb-0310-9956-ffa450edef68
2004-06-19 21:16:12 +00:00
Phil Steitz 78ec9dc5b5 Enforced bounds on quantile, improved javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141324 13f79535-47bb-0310-9956-ffa450edef68
2004-06-19 21:14:54 +00:00
Phil Steitz a39d48f1e5 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141323 13f79535-47bb-0310-9956-ffa450edef68
2004-06-18 22:11:33 +00:00
Phil Steitz 80af9ad497 Added tests for special values.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141322 13f79535-47bb-0310-9956-ffa450edef68
2004-06-18 22:10:35 +00:00
Phil Steitz 3a385a5aa0 Made increment, evaluate consistent wrt NaN, improved javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141321 13f79535-47bb-0310-9956-ffa450edef68
2004-06-18 22:09:53 +00:00
Phil Steitz 2b28400f98 Uncommented previously failing tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141320 13f79535-47bb-0310-9956-ffa450edef68
2004-06-18 13:31:01 +00:00