491 Commits

Author SHA1 Message Date
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
Phil Steitz
77a52d9827 Refactored load 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@141050 13f79535-47bb-0310-9956-ffa450edef68
2004-01-11 07:22:14 +00:00
Phil Steitz
cc68314882 Added load(URL). Addressing PR #25972, reported by Bill Barker.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141049 13f79535-47bb-0310-9956-ffa450edef68
2004-01-11 07:19:52 +00:00
Joerg Pietschmann
54309a11ca Added documentation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141048 13f79535-47bb-0310-9956-ffa450edef68
2003-12-27 15:22:34 +00:00
Mark R. Diggory
f608f7503c Additional Matrix Multiply test
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141046 13f79535-47bb-0310-9956-ffa450edef68
2003-11-23 20:34:41 +00:00
Mark R. Diggory
b84b723efa Patch to correct error in matrix multiply
and the addition od toString method.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141045 13f79535-47bb-0310-9956-ffa450edef68
2003-11-23 20:16:17 +00:00
Mark R. Diggory
4fc6b5e54e New additions of CholeskySolver contributed by Stefan Koeberle
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141044 13f79535-47bb-0310-9956-ffa450edef68
2003-11-23 19:53:40 +00:00
Brent Worden
04094833d5 Here's my idea for approximating derivatives. It follows the decorator layout of commons-collections. The main interface point is the UnivariateRealFunctionUtils type which is responisble for creating decorated UnivariateRealFunction objects. To demostrate the how the decorators could be used, I added the UnivariateRealFunctionUtilsTest class which computes a local maximum of a function using derivative decorators and the default solver.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141043 13f79535-47bb-0310-9956-ffa450edef68
2003-11-22 05:59:31 +00:00
Mark R. Diggory
8406e7ae61 extends MathException....
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141042 13f79535-47bb-0310-9956-ffa450edef68
2003-11-20 04:26:38 +00:00
Mark R. Diggory
4683ebbf93 I've thought about this and I like the idea of getting some of this code available in the cvs for experimentation, I'm going ahead and adding it for others to look at and consider.
This directory will not get compiled into the regular build process or future distributions. We can work on an ant script to provide easy build of this if others think it neccessary.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141041 13f79535-47bb-0310-9956-ffa450edef68
2003-11-20 04:22:17 +00:00
Mark R. Diggory
3c0ef74e44 JUnit testing of serialization of all StorelessUnivariates
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141039 13f79535-47bb-0310-9956-ffa450edef68
2003-11-19 13:35:10 +00:00
Mark R. Diggory
29aba171ed Additional tooling for simple JUnit testing of serialization.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141038 13f79535-47bb-0310-9956-ffa450edef68
2003-11-19 13:26:42 +00:00
Mark R. Diggory
c468a07aa6 Added Serialization Interface to all Implementations
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141036 13f79535-47bb-0310-9956-ffa450edef68
2003-11-19 03:28:25 +00:00
Mark R. Diggory
0718895962 Exposed MathException handling in Distributions by adding thows MathException to methods where MathExceptions are caught and replaced with Double.NaN. Added Serialization Interface to Distributions, BivariateRegression and TestStatistic
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141035 13f79535-47bb-0310-9956-ffa450edef68
2003-11-19 03:22:54 +00:00
Mark R. Diggory
0810e249ac fix for wrong results and stack overflow error from BivariateRegression
PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24747
Obtained from:
Submitted by:	Sergei Skarupo, Brent Worden 
Reviewed by:	Mark Diggory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141034 13f79535-47bb-0310-9956-ffa450edef68
2003-11-18 15:07:12 +00:00
Mark R. Diggory
7374ff2c48 Older versions of the txt files that currently exist in this directory.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141028 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 20:02:46 +00:00
Dirk Verbeeck
3619649ce9 PR: http://www.mail-archive.com/commons-dev@jakarta.apache.org/msg29959.html
Submitted by:	Matt Cliff
  Reviewed by:	Mark Diggory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141026 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 19:04:28 +00:00
Dirk Verbeeck
b033502afa reapply DefaultTransformer update
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141025 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 19:02:45 +00:00
Dirk Verbeeck
90017dc7e7 remove logging
Reviewed by:	Mark Diggory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141024 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 18:59:10 +00:00
Dirk Verbeeck
14bbddbc4c remove old files
Reviewed by:	Mark Diggory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141023 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 18:56:16 +00:00
Dirk Verbeeck
8864381a96 Applied Brent Wardens Bug fixes to Complex implementation and tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141022 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 18:52:31 +00:00
Dirk Verbeeck
d916ecceb2 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24598
Submitted by:	Brent Worden
  Reviewed by:	Mark Diggory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141021 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 18:47:09 +00:00
Dirk Verbeeck
c9a0955115 PR: http://www.mail-archive.com/commons-dev@jakarta.apache.org/msg29959.html
Submitted by:	Matt Cliff
  Reviewed by:	Mark Diggory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141020 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 18:44:52 +00:00
Dirk Verbeeck
e5833affa1 Reapply changes (mdiggory 2003/11/10 09:43:34)
Moving Distributions to higher level location from o.a.c.m.stat.distirbutions to o.a.c.m.distirbutions
Changing Names of Univariates to DescriptiveStatistics and replacing Interface with Abstract Factory Implementation
Moving BeanTransformer and ListUnivariate implmenetations to test directory.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141016 13f79535-47bb-0310-9956-ffa450edef68
2003-11-15 16:01:42 +00:00
Mark R. Diggory
8cf1bdb6b9 Attempting to recover last revision.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141015 13f79535-47bb-0310-9956-ffa450edef68
2003-11-14 22:33:34 +00:00
Mark R. Diggory
f61c462ffe these were removed earlier than 11/1/03
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141014 13f79535-47bb-0310-9956-ffa450edef68
2003-11-14 22:29:41 +00:00
Mark R. Diggory
b3a6a6b3b5 Attempting to recover last revision.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141013 13f79535-47bb-0310-9956-ffa450edef68
2003-11-14 22:25:28 +00:00
Mark R. Diggory
dd899e75fc Recovering
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141012 13f79535-47bb-0310-9956-ffa450edef68
2003-11-14 21:50:39 +00:00
Mark R. Diggory
e389289e77 Committing promotion to commons proper!
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141010 13f79535-47bb-0310-9956-ffa450edef68
2003-11-01 16:09:22 +00:00
Mark R. Diggory
fe5d7c1693 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24241
Submitted by:	Brent Worden


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141007 13f79535-47bb-0310-9956-ffa450edef68
2003-10-30 19:42:43 +00:00
Mark R. Diggory
005c054edd Rewrite StatUtils to use static instances of UnivariateStatistics. Benefits?
1.) In the future, when we establish "Factories" for these objects, we'll be able to plug implementations in, even under our static Utilities classes for these functions. 

2.) The  user can always rely on the same result, whether using the StaticUtil, Univariate Container or direct UnivariateStatistic.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141005 13f79535-47bb-0310-9956-ffa450edef68
2003-10-16 15:59:40 +00:00