You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by md...@apache.org on 2003/09/17 21:29:33 UTC
cvs commit: jakarta-commons-sandbox/math/src/java/org/apache/commons/math/linear package.html
mdiggory 2003/09/17 12:29:33
Modified: math/src/test/org/apache/commons/math/stat/univariate/moment
MeanTest.java GeometricMeanTest.java
SkewnessTest.java KurtosisTest.java
StandardDeviationTest.java VarianceTest.java
math/src/test/org/apache/commons/math/analysis
SinFunction.java InterpolatorTest.java
QuinticFunction.java BisectionSolverTest.java
RealSolverTest.java
math/src/java/org/apache/commons/math/stat/distribution
GammaDistributionImpl.java DistributionFactory.java
package.html DistributionFactoryImpl.java
math/src/test/org/apache/commons/math/stat/univariate
UnivariateStatisticAbstractTest.java
StorelessUnivariateStatisticAbstractTest.java
InteractionTest.java
math build.xml project.xml project.properties
math/src/java/org/apache/commons/math/stat/univariate
package.html
math/src/test/org/apache/commons/math/util
FixedDoubleArrayTest.java
ContractableDoubleArrayTest.java
ContinuedFractionTest.java
ExpandableDoubleArrayTest.java
DoubleArrayAbstractTest.java
math/src/test/org/apache/commons/math/random
ValueServerTest.java
math/src/java/org/apache/commons/math/stat/univariate/moment
Kurtosis.java Skewness.java
math/src/test/org/apache/commons/math/stat/univariate/rank
MedianTest.java PercentileTest.java MaxTest.java
MinTest.java
math/src/test/org/apache/commons/math/stat/distribution
DistributionFactoryImplTest.java
ChiSquareDistributionTest.java
FDistributionTest.java GammaDistributionTest.java
ExponentialDistributionTest.java
BinomialDistributionTest.java
TDistributionTest.java
math/src/java/org/apache/commons/math/util MathUtils.java
package.html
math/src/java/org/apache/commons/math/special package.html
math/src/java/org/apache/commons/math/random
EmpiricalDistribution.java RandomDataImpl.java
package.html EmpiricalDistributionImpl.java
math/src/test/org/apache/commons/math/special BetaTest.java
GammaTest.java
math/src/test/org/apache/commons/math/stat/univariate/summary
SumTest.java SumSqTest.java ProductTest.java
SumLogTest.java
math/src/java/org/apache/commons/math/analysis package.html
UnivariateRealSolverFactory.java
UnivariateRealSolverFactoryImpl.java
math/src/test/org/apache/commons/math/stat
BeanListUnivariateImplTest.java
UnivariateImplTest.java
math/src/test/org/apache/commons/math/beans Patient.java
VitalStats.java
math/src/java/org/apache/commons/math/stat package.html
math/src/java/org/apache/commons/math package.html
math/src/test/org/apache/commons/math TestUtils.java
math/src/java/org/apache/commons/math/linear package.html
Added: math/src/java/org/apache/commons/math/stat/univariate/summary
package.html
math/src/java/org/apache/commons/math/stat/univariate/moment
package.html
math/src/java/org/apache/commons/math/stat/univariate/rank
package.html
Log:
PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23013
Submitted by: Brent Warden
Reviewed by: Mark Diggory
I also regenerated the build.xml using Maven to get the Discovery dependency added in.
Revision Changes Path
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/MeanTest.java
Index: MeanTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/MeanTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MeanTest.java 7 Jul 2003 23:19:19 -0000 1.3
+++ MeanTest.java 17 Sep 2003 19:29:27 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class MeanTest extends StorelessUnivariateStatisticAbstractTest{
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/GeometricMeanTest.java
Index: GeometricMeanTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/GeometricMeanTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- GeometricMeanTest.java 7 Jul 2003 23:19:19 -0000 1.2
+++ GeometricMeanTest.java 17 Sep 2003 19:29:27 -0000 1.3
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class GeometricMeanTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +2 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/SkewnessTest.java
Index: SkewnessTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/SkewnessTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SkewnessTest.java 7 Jul 2003 23:19:19 -0000 1.3
+++ SkewnessTest.java 17 Sep 2003 19:29:27 -0000 1.4
@@ -58,10 +58,11 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ *
+ * @version $Revision$ $Date$
*/
public class SkewnessTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/KurtosisTest.java
Index: KurtosisTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/KurtosisTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- KurtosisTest.java 7 Jul 2003 23:19:19 -0000 1.3
+++ KurtosisTest.java 17 Sep 2003 19:29:27 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class KurtosisTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +2 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/StandardDeviationTest.java
Index: StandardDeviationTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/StandardDeviationTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StandardDeviationTest.java 7 Jul 2003 23:19:19 -0000 1.3
+++ StandardDeviationTest.java 17 Sep 2003 19:29:27 -0000 1.4
@@ -58,10 +58,11 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ *
+ * @version $Revision$ $Date$
*/
public class StandardDeviationTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +2 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/VarianceTest.java
Index: VarianceTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/moment/VarianceTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- VarianceTest.java 7 Jul 2003 23:19:19 -0000 1.3
+++ VarianceTest.java 17 Sep 2003 19:29:27 -0000 1.4
@@ -58,10 +58,11 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ *
+ * @version $Revision$ $Date$
*/
public class VarianceTest extends StorelessUnivariateStatisticAbstractTest{
1.1 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/summary/package.html
Index: package.html
===================================================================
<html>
<!-- $Revision: 1.1 $ $Date: 2003/09/17 19:29:27 $ -->
<body>Other summary statistics.</body>
</html>
1.4 +1 -2 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/SinFunction.java
Index: SinFunction.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/SinFunction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SinFunction.java 27 Jun 2003 04:59:27 -0000 1.3
+++ SinFunction.java 17 Sep 2003 19:29:27 -0000 1.4
@@ -63,8 +63,7 @@
* which means linear approximation (Regula Falsi) will converge
* quadratically.
*
- * @author pietsch at apache.org
- *
+ * @version $Revision$ $Date$
*/
public class SinFunction implements UnivariateRealFunction {
1.3 +1 -2 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java
Index: InterpolatorTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- InterpolatorTest.java 7 Sep 2003 03:12:56 -0000 1.2
+++ InterpolatorTest.java 17 Sep 2003 19:29:27 -0000 1.3
@@ -61,9 +61,8 @@
/**
* Test the interpolation framework.
- *
- * @author pietsch at apache.org
*
+ * @version $Revision$ $Date$
*/
public class InterpolatorTest extends TestCase {
1.4 +1 -2 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/QuinticFunction.java
Index: QuinticFunction.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/QuinticFunction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- QuinticFunction.java 27 Jun 2003 04:59:27 -0000 1.3
+++ QuinticFunction.java 17 Sep 2003 19:29:27 -0000 1.4
@@ -57,9 +57,8 @@
/**
* Auxillary class for testing solvers.
- *
- * @author pietsch at apache.org
*
+ * @version $Revision$ $Date$
*/
public class QuinticFunction implements UnivariateRealFunction {
1.2 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/BisectionSolverTest.java
Index: BisectionSolverTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/BisectionSolverTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BisectionSolverTest.java 5 Jul 2003 18:05:31 -0000 1.1
+++ BisectionSolverTest.java 17 Sep 2003 19:29:27 -0000 1.2
@@ -58,7 +58,7 @@
import junit.framework.TestCase;
/**
- *
+ * @version $Revision$ $Date$
*/
public final class BisectionSolverTest extends TestCase {
/**
1.3 +1 -2 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/RealSolverTest.java
Index: RealSolverTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/analysis/RealSolverTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- RealSolverTest.java 30 Jul 2003 21:58:11 -0000 1.2
+++ RealSolverTest.java 17 Sep 2003 19:29:27 -0000 1.3
@@ -69,8 +69,7 @@
* default absolute accuracy of 10E-8 for sinus and the quintic function around
* zero, and 5..10 iterations for the other zeros.
*
- * @author pietsch at apache.org
- *
+ * @version $Revision$ $Date$
*/
public final class RealSolverTest extends TestCase {
1.6 +5 -5 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/GammaDistributionImpl.java
Index: GammaDistributionImpl.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/GammaDistributionImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- GammaDistributionImpl.java 9 Jul 2003 20:03:23 -0000 1.5
+++ GammaDistributionImpl.java 17 Sep 2003 19:29:28 -0000 1.6
@@ -152,10 +152,10 @@
*
* @param p the desired probability for the critical value
* @return domain value lower bound, i.e.
- * P(X < <i>lower bound</i>) < <code>p</code>
+ * P(X < <i>lower bound</i>) < <code>p</code>
+ * @todo try to improve on this estimate
*/
protected double getDomainLowerBound(double p) {
- // TODO: try to improve on this estimate
return Double.MIN_VALUE;
}
@@ -167,11 +167,11 @@
* @param p the desired probability for the critical value
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
+ * @todo try to improve on this estimate
*/
protected double getDomainUpperBound(double p) {
// NOTE: gamma is skewed to the left
// NOTE: therefore, P(X < μ) > .5
- // TODO: try to improve on this estimate
double ret;
@@ -193,11 +193,11 @@
*
* @param p the desired probability for the critical value
* @return initial domain value
+ * @todo try to improve on this estimate
*/
protected double getInitialDomain(double p) {
// NOTE: gamma is skewed to the left
// NOTE: therefore, P(X < μ) > .5
- // TODO: try to improve on this estimate
double ret;
1.12 +13 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/DistributionFactory.java
Index: DistributionFactory.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/DistributionFactory.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DistributionFactory.java 17 Sep 2003 19:19:08 -0000 1.11
+++ DistributionFactory.java 17 Sep 2003 19:29:28 -0000 1.12
@@ -54,6 +54,8 @@
package org.apache.commons.math.stat.distribution;
+import org.apache.commons.discovery.tools.DiscoverClass;
+
/**
* This factory provids the means to create common statistical distributions.
* The following distributions are supported:
@@ -86,11 +88,18 @@
/**
* Create an instance of a <code>DistributionFactory</code>
* @return a new factory.
- * @todo for now, return the only concrete factory. Later, allow for a
- * plugable implementation, possibly using SPI and commons-discovery.
*/
public static DistributionFactory newInstance() {
- return new DistributionFactoryImpl();
+ DistributionFactory factory = null;
+ try {
+ DiscoverClass dc = new DiscoverClass();
+ factory = (DistributionFactory) dc.newInstance(
+ DistributionFactory.class,
+ "org.apache.commons.math.stat.distribution.DistributionFactoryImpl");
+ } catch(Exception ex) {
+ // ignore as default implementation will be used.
+ }
+ return factory;
}
/**
1.2 +3 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 22 Jun 2003 03:57:57 -0000 1.1
+++ package.html 17 Sep 2003 19:29:28 -0000 1.2
@@ -1,5 +1,4 @@
<html>
- <body>
- Provides common math utilities such as statistics and a matrix class.
- </body>
-</html>
\ No newline at end of file
+ <!-- $Revision$ $Date$ -->
+ <body>Implementations of common discrete and continuous distributions.</body>
+</html>
1.10 +2 -2 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/DistributionFactoryImpl.java
Index: DistributionFactoryImpl.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/distribution/DistributionFactoryImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DistributionFactoryImpl.java 17 Sep 2003 19:19:08 -0000 1.9
+++ DistributionFactoryImpl.java 17 Sep 2003 19:29:28 -0000 1.10
@@ -64,7 +64,7 @@
/**
* Default constructor. Package scope to prevent unwanted instantiation.
*/
- DistributionFactoryImpl() {
+ public DistributionFactoryImpl() {
super();
}
1.4 +1 -0 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/UnivariateStatisticAbstractTest.java
Index: UnivariateStatisticAbstractTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/UnivariateStatisticAbstractTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- UnivariateStatisticAbstractTest.java 7 Jul 2003 23:19:21 -0000 1.3
+++ UnivariateStatisticAbstractTest.java 17 Sep 2003 19:29:28 -0000 1.4
@@ -57,6 +57,7 @@
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public abstract class UnivariateStatisticAbstractTest extends TestCase {
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/StorelessUnivariateStatisticAbstractTest.java
Index: StorelessUnivariateStatisticAbstractTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/StorelessUnivariateStatisticAbstractTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StorelessUnivariateStatisticAbstractTest.java 9 Jul 2003 16:28:30 -0000 1.3
+++ StorelessUnivariateStatisticAbstractTest.java 17 Sep 2003 19:29:28 -0000 1.4
@@ -53,10 +53,10 @@
*/
package org.apache.commons.math.stat.univariate;
-import junit.framework.TestCase;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public abstract class StorelessUnivariateStatisticAbstractTest
extends UnivariateStatisticAbstractTest {
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/InteractionTest.java
Index: InteractionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/InteractionTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- InteractionTest.java 9 Jul 2003 21:46:33 -0000 1.2
+++ InteractionTest.java 17 Sep 2003 19:29:28 -0000 1.3
@@ -62,7 +62,7 @@
import junit.framework.TestCase;
/**
- *
+ * @version $Revision$ $Date$
*/
public class InteractionTest extends TestCase {
1.6 +4 -2 jakarta-commons-sandbox/math/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xml 5 Jul 2003 19:24:18 -0000 1.5
+++ build.xml 17 Sep 2003 19:29:28 -0000 1.6
@@ -2,7 +2,7 @@
<!--
build.xml generated by maven from project.xml version 0.1-dev
- on date July 4 2003, time 2008
+ on date September 17 2003, time 1526
-->
<project default="jar" name="commons-math" basedir=".">
@@ -149,9 +149,11 @@
</javadoc>
</target>
<target name="get-deps" unless="noget" depends="init">
- <get dest="${libdir}/commons-beanutils-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.5.jar">
+ <get dest="${libdir}/commons-beanutils-SNAPSHOT.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-SNAPSHOT.jar">
</get>
<get dest="${libdir}/commons-collections-SNAPSHOT.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-SNAPSHOT.jar">
+ </get>
+ <get dest="${libdir}/commons-discovery-SNAPSHOT.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-discovery/jars/commons-discovery-SNAPSHOT.jar">
</get>
<get dest="${libdir}/commons-logging-1.0.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar">
</get>
1.24 +129 -121 jakarta-commons-sandbox/math/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/project.xml,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- project.xml 30 Jul 2003 21:58:10 -0000 1.23
+++ project.xml 17 Sep 2003 19:29:28 -0000 1.24
@@ -1,124 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
-
+<!-- $Revision$ $Date$ -->
<project>
- <extend>../../jakarta-commons/project.xml</extend>
- <name>Math</name>
- <id>commons-math</id>
- <currentVersion>0.1-dev</currentVersion>
- <inceptionYear>2003</inceptionYear>
- <logo/>
- <shortDescription>
-A library of lightweight, self-contained mathematics and statistics components.
- </shortDescription>
- <description>
-The Math project is a library of lightweight, self-contained mathematics and statistics components addressing the most common practical problems not immediately available in the Java programming language or commons-lang.
- </description>
- <siteDirectory>/www/jakarta.apache.org/commons/sandbox/math/</siteDirectory>
- <versions>
- <version>
- <id>0.1-dev</id>
- <name>0.1-dev</name>
- </version>
- </versions>
-
- <developers>
- <developer>
- <name>Robert Burrell Donkin</name>
- <id>rdonkin</id>
- <email>rdonkin@apache.org</email>
- </developer>
- <developer>
- <name>Tim OBrien</name>
- <id>tobrien</id>
- <email>tobrien@apache.org</email>
- </developer>
- <developer>
- <name>Mark R. Diggory</name>
- <id>mdiggory</id>
- <email>mdiggory@apache.org</email>
- </developer>
- </developers>
-
- <contributors>
- <contributor>
- <name>Phil Steitz</name>
- <email>phil@steitz.com</email>
- <roles>
- <role>proposal author</role>
- <role>initial contributor</role>
- </roles>
- </contributor>
- <contributor>
- <name>Brent Worden</name>
- <email>brent@worden.org</email>
- </contributor>
- <contributor>
- <name>Albert Davidson Chou</name>
- <email>hotfusionman@yahoo.com</email>
- </contributor>
- <contributor>
- <name>J.Pietschmann</name>
- <email>j3322ptm@yahoo.de</email>
- </contributor>
- </contributors>
-
- <dependencies>
- <dependency>
- <id>commons-beanutils</id>
- <version>1.5</version>
- </dependency>
- <dependency>
- <id>commons-collections</id>
- <version>SNAPSHOT</version>
- </dependency>
- <dependency>
- <id>commons-logging</id>
- <version>1.0.3</version>
- </dependency>
- </dependencies>
-
- <issueTrackingUrl>http://nagoya.apache.org/bugzilla/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Commons&component=Sandbox&short_desc=&short_desc_type=allwordssubstr&long_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&order=%27Importance%27</issueTrackingUrl>
-
- <repository>
- <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-commons-sandbox/${pom.artifactId.substring(8)}</connection>
- <url>http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/${pom.artifactId.substring(8)}/</url>
- </repository>
-
- <build>
- <unitTest>
- <includes>
- <include>**/*Test.java</include>
- </includes>
- <excludes>
- <exclude>**/*AbstractTest.java</exclude>
- </excludes>
- <resources>
- <resource>
- <directory>${pom.build.unitTestSourceDirectory}</directory>
- <includes>
- <include>**/*.xml</include>
- <include>**/*.txt</include>
- </includes>
- </resource>
- </resources>
- </unitTest>
- </build>
-
- <reports>
- <report>maven-changelog-plugin</report>
- <report>maven-changes-plugin</report>
- <report>maven-checkstyle-plugin</report>
-<!-- <report>maven-clover-plugin</report> -->
- <report>maven-developer-activity-plugin</report>
- <report>maven-file-activity-plugin</report>
- <report>maven-javadoc-plugin</report>
- <report>maven-jdepend-plugin</report>
- <report>maven-junit-report-plugin</report>
- <report>maven-jxr-plugin</report>
- <report>maven-license-plugin</report>
-<!-- <report>maven-linkcheck-plugin</report> -->
- <report>maven-statcvs-plugin</report>
- <report>maven-tasklist-plugin</report>
- </reports>
-
+ <extend>../../jakarta-commons/project.xml</extend>
+ <name>Math</name>
+ <id>commons-math</id>
+ <currentVersion>0.1-dev</currentVersion>
+ <inceptionYear>2003</inceptionYear>
+ <logo/>
+ <shortDescription>A library of lightweight, self-contained mathematics and
+ statistics components.</shortDescription>
+ <description>The Math project is a library of lightweight, self-contained
+ mathematics and statistics components addressing the most common practical
+ problems not immediately available in the Java programming language or
+ commons-lang.</description>
+ <siteDirectory>/www/jakarta.apache.org/commons/sandbox/math/</siteDirectory>
+ <versions>
+ <version>
+ <id>0.1-dev</id>
+ <name>0.1-dev</name>
+ </version>
+ </versions>
+ <developers>
+ <developer>
+ <name>Robert Burrell Donkin</name>
+ <id>rdonkin</id>
+ <email>rdonkin@apache.org</email>
+ </developer>
+ <developer>
+ <name>Tim OBrien</name>
+ <id>tobrien</id>
+ <email>tobrien@apache.org</email>
+ </developer>
+ <developer>
+ <name>Mark R. Diggory</name>
+ <id>mdiggory</id>
+ <email>mdiggory@apache.org</email>
+ </developer>
+ </developers>
+ <contributors>
+ <contributor>
+ <name>Phil Steitz</name>
+ <email>phil@steitz.com</email>
+ <roles>
+ <role>proposal author</role>
+ <role>initial contributor</role>
+ </roles>
+ </contributor>
+ <contributor>
+ <name>Brent Worden</name>
+ <email>brent@worden.org</email>
+ </contributor>
+ <contributor>
+ <name>Albert Davidson Chou</name>
+ <email>hotfusionman@yahoo.com</email>
+ </contributor>
+ <contributor>
+ <name>J.Pietschmann</name>
+ <email>j3322ptm@yahoo.de</email>
+ </contributor>
+ </contributors>
+ <dependencies>
+ <dependency>
+ <id>commons-beanutils</id>
+ <version>SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <id>commons-collections</id>
+ <version>SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <id>commons-discovery</id>
+ <version>SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <id>commons-logging</id>
+ <version>1.0.3</version>
+ </dependency>
+ </dependencies>
+ <issueTrackingUrl>http://nagoya.apache.org/bugzilla/buglist.cgi?bug_status=NEW&
+ bug_status=ASSIGNED&bug_status=REOPENED&email1=&
+ emailtype1=substring&emailassigned_to1=1&email2=&
+ emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&
+ changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&
+ product=Commons&component=Sandbox&short_desc=&
+ short_desc_type=allwordssubstr&long_desc=&
+ long_desc_type=allwordssubstr&bug_file_loc=&
+ bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&
+ field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&
+ order=%27Importance%27</issueTrackingUrl>
+ <repository>
+ <connection>
+ scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-commons-sandbox/${pom.artifactId.substring(8)}</connection>
+ <url>
+ http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/${pom.artifactId.substring(8)}/</url>
+ </repository>
+ <build>
+ <unitTest>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/*AbstractTest.java</exclude>
+ </excludes>
+ <resources>
+ <resource>
+ <directory>${pom.build.unitTestSourceDirectory}</directory>
+ <includes>
+ <include>**/*.xml</include>
+ <include>**/*.txt</include>
+ </includes>
+ </resource>
+ </resources>
+ </unitTest>
+ </build>
+ <reports>
+ <report>maven-changelog-plugin</report>
+ <report>maven-changes-plugin</report>
+ <report>maven-checkstyle-plugin</report>
+ <!-- <report>maven-clover-plugin</report> -->
+ <report>maven-developer-activity-plugin</report>
+ <report>maven-file-activity-plugin</report>
+ <report>maven-javadoc-plugin</report>
+ <report>maven-jdepend-plugin</report>
+ <report>maven-junit-report-plugin</report>
+ <report>maven-jxr-plugin</report>
+ <report>maven-license-plugin</report>
+ <!-- <report>maven-linkcheck-plugin</report> -->
+ <report>maven-statcvs-plugin</report>
+ <report>maven-tasklist-plugin</report>
+ </reports>
</project>
1.6 +1 -5 jakarta-commons-sandbox/math/project.properties
Index: project.properties
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/project.properties,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- project.properties 11 Jul 2003 15:59:14 -0000 1.5
+++ project.properties 17 Sep 2003 19:29:28 -0000 1.6
@@ -11,11 +11,7 @@
maven.xdoc.version=${pom.currentVersion}
maven.xdoc.developmentProcessUrl=http://jakarta.apache.org/commons/charter.html
-maven.javadoc.links = http://java.sun.com/j2se/1.4.1/docs/api/,\
- http://jakarta.apache.org/commons/collections/api/,\
- http://jakarta.apache.org/commons/beanutils/api/,\
- http://jakarta.apache.org/commons/logging/api/
-maven.javadoc.links = http://java.sun.com/j2se/1.4.1/docs/api/,\
+maven.javadoc.links = http://java.sun.com/j2se/1.4.2/docs/api/,\
http://jakarta.apache.org/commons/collections/api/,\
http://jakarta.apache.org/commons/beanutils/api/,\
http://jakarta.apache.org/commons/logging/api/
1.2 +23 -33 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 15 Jul 2003 03:37:10 -0000 1.1
+++ package.html 17 Sep 2003 19:29:29 -0000 1.2
@@ -1,35 +1,25 @@
<html>
-<body>
-<h3>UnivariateStatistic API Usage Examples:</h3>
-
-<h4>UnivariateStatistic:</h4>
-
-<code>
-/* evaluation approach */<br/>
-double[] values = new double[] { 1, 2, 3, 4, 5 };<br/>
-<span style="font-weight: bold;">UnivariateStatistic stat = new Mean();</span><br/>
-System.out.println("mean = " +
-<span style="font-weight: bold;">stat.evaluate(values)</span>);<br/>
-</code>
-
-<h4>StorelessUnivariateStatistic:</h4>
-
-<code>
-/* incremental approach */<br>
-double[] values = new double[] { 1, 2, 3, 4, 5 };<br/>
-<span style="font-weight: bold;">StorelessUnivariateStatistic stat =
-new Mean();</span><br/>
-System.out.println("mean before adding a value is NaN = " + <span
- style="font-weight: bold;">stat.getResult()</span>);<br/>
-for (int i = 0; i < values.length; i++) {<br/>
- <span style="font-weight: bold;">stat.increment(values[i]);</span><br>
- System.out.println("current mean = " + <span
- style="font-weight: bold;">stat2.getResult()</span>);<br/>
-}<br>
-<span style="font-weight: bold;"> stat.clear();</span><br/>
-System.out.println("mean after clear is NaN = " + <span
- style="font-weight: bold;">stat.getResult()</span>);
-</code>
-
-</body>
+ <!-- $Revision$ $Date$ -->
+ <body>
+ Generic univariate summary statistic objects.
+
+ <h3>UnivariateStatistic API Usage Examples:</h3>
+ <h4>UnivariateStatistic:</h4>
+ <code>/* evaluation approach */<br/> double[] values = new double[] { 1, 2,
+ 3, 4, 5 };<br/> <span style="font-weight: bold;">UnivariateStatistic stat
+ = new Mean();</span><br/> System.out.println("mean = " + <span
+ style="font-weight: bold;">stat.evaluate(values)</span>);<br/> </code>
+ <h4>StorelessUnivariateStatistic:</h4>
+ <code>/* incremental approach */<br/> double[] values = new double[] { 1, 2,
+ 3, 4, 5 };<br/> <span style="font-weight: bold;">
+ StorelessUnivariateStatistic stat = new Mean();</span><br/>
+ System.out.println("mean before adding a value is NaN = " + <span
+ style="font-weight: bold;">stat.getResult()</span>);<br/> for (int i = 0;
+ i < values.length; i++) {<br/> <span
+ style="font-weight: bold;">stat.increment(values[i]);</span><br/>
+ System.out.println("current mean = " + <span style="font-weight: bold;">
+ stat2.getResult()</span>);<br/> }<br/> <span style="font-weight: bold;">
+ stat.clear();</span><br/> System.out.println("mean after clear is NaN = "
+ + <span style="font-weight: bold;">stat.getResult()</span>);</code>
+ </body>
</html>
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/FixedDoubleArrayTest.java
Index: FixedDoubleArrayTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/FixedDoubleArrayTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FixedDoubleArrayTest.java 6 Jul 2003 03:27:47 -0000 1.3
+++ FixedDoubleArrayTest.java 17 Sep 2003 19:29:29 -0000 1.4
@@ -57,7 +57,7 @@
/**
* This class contains test cases for the ExpandableDoubleArray.
*
- * @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
+ * @version $Revision$ $Date$
*/
public class FixedDoubleArrayTest extends DoubleArrayAbstractTest {
1.2 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/ContractableDoubleArrayTest.java
Index: ContractableDoubleArrayTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/ContractableDoubleArrayTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ContractableDoubleArrayTest.java 22 Jun 2003 03:57:55 -0000 1.1
+++ ContractableDoubleArrayTest.java 17 Sep 2003 19:29:29 -0000 1.2
@@ -57,7 +57,7 @@
/**
* This class contains test cases for the ExpandableDoubleArray.
*
- * @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
+ * @version $Revision$ $Date$
*/
public class ContractableDoubleArrayTest extends ExpandableDoubleArrayTest {
1.2 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/ContinuedFractionTest.java
Index: ContinuedFractionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/ContinuedFractionTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ContinuedFractionTest.java 22 Jun 2003 03:57:55 -0000 1.1
+++ ContinuedFractionTest.java 17 Sep 2003 19:29:29 -0000 1.2
@@ -56,7 +56,7 @@
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class ContinuedFractionTest extends TestCase {
/**
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/ExpandableDoubleArrayTest.java
Index: ExpandableDoubleArrayTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/ExpandableDoubleArrayTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ExpandableDoubleArrayTest.java 27 Jun 2003 20:58:27 -0000 1.2
+++ ExpandableDoubleArrayTest.java 17 Sep 2003 19:29:29 -0000 1.3
@@ -57,7 +57,7 @@
/**
* This class contains test cases for the ExpandableDoubleArray.
*
- * @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
+ * @version $Revision$ $Date$
*/
public class ExpandableDoubleArrayTest extends DoubleArrayAbstractTest {
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/DoubleArrayAbstractTest.java
Index: DoubleArrayAbstractTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/util/DoubleArrayAbstractTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DoubleArrayAbstractTest.java 27 Jun 2003 20:58:27 -0000 1.2
+++ DoubleArrayAbstractTest.java 17 Sep 2003 19:29:29 -0000 1.3
@@ -60,7 +60,7 @@
/**
* This class contains test cases for the ExpandableDoubleArray.
*
- * @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
+ * @version $Revision$ $Date$
*/
public abstract class DoubleArrayAbstractTest extends TestCase {
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/random/ValueServerTest.java
Index: ValueServerTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/random/ValueServerTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ValueServerTest.java 7 Jul 2003 23:19:21 -0000 1.2
+++ ValueServerTest.java 17 Sep 2003 19:29:29 -0000 1.3
@@ -64,7 +64,7 @@
/**
* Test cases for the ValueServer class.
*
- * @version $Revision$
+ * @version $Revision$ $Date$
*/
public final class ValueServerTest extends TestCase {
1.9 +9 -9 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/moment/Kurtosis.java
Index: Kurtosis.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/moment/Kurtosis.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Kurtosis.java 7 Sep 2003 03:12:56 -0000 1.8
+++ Kurtosis.java 17 Sep 2003 19:29:29 -0000 1.9
@@ -146,7 +146,9 @@
Mean mean = new Mean();
/**
- * This algorithm uses a corrected two pass algorithm of the following
+ * Returns the kurtosis for this collection of values. Kurtosis is a
+ * measure of the "peakedness" of a distribution. This algorithm uses a
+ * corrected two pass algorithm of the following
* <a href="http://lib-www.lanl.gov/numerical/bookcpdf/c14-1.pdf">
* corrected two pass formula (14.1.8)</a>, and also referenced in:
* <p>
@@ -154,13 +156,11 @@
* Recommendations", Chan, T.F., Golub, G.H., and LeVeque, R.J.
* 1983, American Statistician, vol. 37, pp. 242?247.
* </p>
- * Returns the kurtosis for this collection of values. Kurtosis is a
- * measure of the "peakedness" of a distribution.
- * @param values Is a double[] containing the values
- * @param begin processing at this point in the array
- * @param length processing at this point in the array
- * @return the kurtosis of the values or Double.NaN if the array is empty
- */
+ * @param values Is a double[] containing the values
+ * @param begin processing at this point in the array
+ * @param length processing at this point in the array
+ * @return the kurtosis of the values or Double.NaN if the array is empty
+ */
public double evaluate(
final double[] values,
final int begin,
1.9 +4 -11 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/moment/Skewness.java
Index: Skewness.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/moment/Skewness.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Skewness.java 7 Sep 2003 03:12:56 -0000 1.8
+++ Skewness.java 17 Sep 2003 19:29:29 -0000 1.9
@@ -53,16 +53,9 @@
*/
package org.apache.commons.math.stat.univariate.moment;
-import org
- .apache
- .commons
- .math
- .stat
- .univariate
- .AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatistic;
/**
- *
* @version $Revision$ $Date$
*/
public class Skewness extends AbstractStorelessUnivariateStatistic {
@@ -144,6 +137,8 @@
Mean mean = new Mean();
/**
+ * Returns the skewness of a collection of values. Skewness is a
+ * measure of the assymetry of a given distribution.
* This algorithm uses a corrected two pass algorithm of the following
* <a href="http://lib-www.lanl.gov/numerical/bookcpdf/c14-1.pdf">
* corrected two pass formula (14.1.8)</a>, and also referenced in
@@ -152,8 +147,6 @@
* Recommendations", Chan, T.F., Golub, G.H., and LeVeque, R.J.
* 1983, American Statistician, vol. 37, pp. 242?247.
* </p>
- * Returns the skewness of a collection of values. Skewness is a
- * measure of the assymetry of a given distribution.
* @param values Is a double[] containing the values
* @param begin processing at this point in the array
* @param length processing at this point in the array
1.1 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/moment/package.html
Index: package.html
===================================================================
<html>
<!-- $Revision: 1.1 $ $Date: 2003/09/17 19:29:29 $ -->
<body>Summary statistics based on moments.</body>
</html>
1.3 +1 -0 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/MedianTest.java
Index: MedianTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/MedianTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MedianTest.java 7 Jul 2003 23:19:21 -0000 1.2
+++ MedianTest.java 17 Sep 2003 19:29:29 -0000 1.3
@@ -61,6 +61,7 @@
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class MedianTest extends UnivariateStatisticAbstractTest{
1.3 +1 -0 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/PercentileTest.java
Index: PercentileTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/PercentileTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PercentileTest.java 7 Jul 2003 23:19:21 -0000 1.2
+++ PercentileTest.java 17 Sep 2003 19:29:29 -0000 1.3
@@ -61,6 +61,7 @@
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class PercentileTest extends UnivariateStatisticAbstractTest{
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/MaxTest.java
Index: MaxTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/MaxTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MaxTest.java 7 Jul 2003 23:19:21 -0000 1.3
+++ MaxTest.java 17 Sep 2003 19:29:29 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class MaxTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/MinTest.java
Index: MinTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/rank/MinTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MinTest.java 7 Jul 2003 23:19:21 -0000 1.3
+++ MinTest.java 17 Sep 2003 19:29:29 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class MinTest extends StorelessUnivariateStatisticAbstractTest{
1.9 +55 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/DistributionFactoryImplTest.java
Index: DistributionFactoryImplTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/DistributionFactoryImplTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- DistributionFactoryImplTest.java 17 Sep 2003 19:19:09 -0000 1.8
+++ DistributionFactoryImplTest.java 17 Sep 2003 19:29:30 -0000 1.9
@@ -1,9 +1,63 @@
+/* ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Commons", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+
package org.apache.commons.math.stat.distribution;
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class DistributionFactoryImplTest extends TestCase {
/** */
1.4 +55 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/ChiSquareDistributionTest.java
Index: ChiSquareDistributionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/ChiSquareDistributionTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ChiSquareDistributionTest.java 5 Jun 2003 14:03:52 -0000 1.3
+++ ChiSquareDistributionTest.java 17 Sep 2003 19:29:30 -0000 1.4
@@ -1,9 +1,63 @@
+/* ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Commons", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+
package org.apache.commons.math.stat.distribution;
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class ChiSquareDistributionTest extends TestCase {
private ChiSquaredDistribution chiSquare;
1.2 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/FDistributionTest.java
Index: FDistributionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/FDistributionTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FDistributionTest.java 11 Jun 2003 01:19:18 -0000 1.1
+++ FDistributionTest.java 17 Sep 2003 19:29:30 -0000 1.2
@@ -56,7 +56,7 @@
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class FDistributionTest extends TestCase {
private FDistribution f;
1.4 +55 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/GammaDistributionTest.java
Index: GammaDistributionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/GammaDistributionTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- GammaDistributionTest.java 5 Jun 2003 14:03:52 -0000 1.3
+++ GammaDistributionTest.java 17 Sep 2003 19:29:30 -0000 1.4
@@ -1,9 +1,63 @@
+/* ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Commons", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+
package org.apache.commons.math.stat.distribution;
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class GammaDistributionTest extends TestCase {
/**
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/ExponentialDistributionTest.java
Index: ExponentialDistributionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/ExponentialDistributionTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ExponentialDistributionTest.java 14 Jun 2003 04:24:43 -0000 1.2
+++ ExponentialDistributionTest.java 17 Sep 2003 19:29:30 -0000 1.3
@@ -58,7 +58,7 @@
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class ExponentialDistributionTest extends TestCase {
private ExponentialDistribution exp;
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/BinomialDistributionTest.java
Index: BinomialDistributionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/BinomialDistributionTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- BinomialDistributionTest.java 17 Sep 2003 19:19:09 -0000 1.2
+++ BinomialDistributionTest.java 17 Sep 2003 19:29:30 -0000 1.3
@@ -56,7 +56,7 @@
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class BinomialDistributionTest extends TestCase {
private BinomialDistribution b;
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/TDistributionTest.java
Index: TDistributionTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/distribution/TDistributionTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TDistributionTest.java 14 Jun 2003 04:17:49 -0000 1.2
+++ TDistributionTest.java 17 Sep 2003 19:29:30 -0000 1.3
@@ -56,7 +56,7 @@
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class TDistributionTest extends TestCase {
private TDistribution t;
1.4 +13 -15 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/util/MathUtils.java
Index: MathUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/util/MathUtils.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MathUtils.java 9 Aug 2003 04:03:41 -0000 1.3
+++ MathUtils.java 17 Sep 2003 19:29:31 -0000 1.4
@@ -55,7 +55,7 @@
package org.apache.commons.math.util;
/**
- * Some useful additions to the built-in functions in lang.Math<p>
+ * Some useful additions to the built-in functions in {@link Math}.
*
* @version $Revision$ $Date$
*/
@@ -274,10 +274,10 @@
}
/**
- * Returns <code>n</code>
+ * Returns n!. Shorthand for <code>n</code>
* <a href="http://mathworld.wolfram.com/Factorial.html">
- * Factorial</a>, or <code>n!</code>,
- * the product of the numbers <code>1,...,n</code>.
+ * Factorial</a>, the product of the numbers <code>1,...,n</code>.
+ *
* <p>
* <Strong>Preconditions</strong>:<ul>
* <li> <code>n > 0</code> (otherwise
@@ -288,7 +288,8 @@
* exceeds <code>Long.MAX_VALUE</code> an <code>ArithMeticException
* </code> is thrown.</li>
* </ul>
- *
+ * </p>
+ *
* @param n argument
* @return <code>n!</code>
*/
@@ -302,11 +303,11 @@
}
/**
- * Returns <code>n</code>
+ * Returns n!. Shorthand for <code>n</code>
* <a href="http://mathworld.wolfram.com/Factorial.html">
- * Factorial</a>, or <code>n!</code>,
- * the product of the numbers <code>1,...,n</code>, as as
+ * Factorial</a>, the product of the numbers <code>1,...,n</code> as a
* <code>double</code>.
+ *
* <p>
* <Strong>Preconditions</strong>:<ul>
* <li> <code>n > 0</code> (otherwise
@@ -316,7 +317,8 @@
* < Double.MAX_VALUE</code> is 170. If the computed value exceeds
* Double.MAX_VALUE, Double.POSITIVE_INFINITY is returned</li>
* </ul>
- *
+ * </p>
+ *
* @param n argument
* @return <code>n!</code>
*/
@@ -328,11 +330,7 @@
}
/**
- * Returns the natural <code>log</code> of <code>n</code>
- * <a href="http://mathworld.wolfram.com/Factorial.html">
- * Factorial</a>, or <code>n!</code>,
- * the product of the numbers <code>1,...,n</code>, as as
- * <code>double</code>.
+ * Returns the natural logarithm of n!.
* <p>
* <Strong>Preconditions</strong>:<ul>
* <li> <code>n > 0</code> (otherwise
1.2 +3 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/util/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/util/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 22 Jun 2003 03:57:57 -0000 1.1
+++ package.html 17 Sep 2003 19:29:31 -0000 1.2
@@ -1,5 +1,4 @@
<html>
- <body>
- Provides common math utilities such as statistics and a matrix class.
- </body>
-</html>
\ No newline at end of file
+ <!-- $Revision$ $Date$ -->
+ <body>Convience routines and common data structure used throughout the commons-math library.</body>
+</html>
1.1 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/univariate/rank/package.html
Index: package.html
===================================================================
<html>
<!-- $Revision: 1.1 $ $Date: 2003/09/17 19:29:31 $ -->
<body>Summary statistics based on ranks.</body>
</html>
1.2 +3 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/special/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/special/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 22 Jun 2003 03:57:53 -0000 1.1
+++ package.html 17 Sep 2003 19:29:31 -0000 1.2
@@ -1,5 +1,4 @@
<html>
- <body>
- Provides common math utilities such as statistics and a matrix class.
- </body>
-</html>
\ No newline at end of file
+ <!-- $Revision$ $Date$ -->
+ <body>Implementations of special functions such as Beta and Gamma.</body>
+</html>
1.5 +4 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/EmpiricalDistribution.java
Index: EmpiricalDistribution.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/EmpiricalDistribution.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- EmpiricalDistribution.java 7 Sep 2003 03:12:56 -0000 1.4
+++ EmpiricalDistribution.java 17 Sep 2003 19:29:31 -0000 1.5
@@ -99,7 +99,7 @@
void load(File file) throws IOException;
/**
- * Generates a random value from this distribution<p>
+ * Generates a random value from this distribution.
* <strong>Preconditions:</strong><ul>
* <li>the distribution must be loaded before invoking this method</li></ul>
* @return the random value.
@@ -109,7 +109,7 @@
/**
- * <p>Returns a Univariate describing this distribution</p>
+ * Returns a Univariate describing this distribution.
* <strong>Preconditions:</strong><ul>
* <li>the distribution must be loaded before invoking this method</li></ul>
* @return the sample statistics
@@ -173,7 +173,7 @@
ArrayList getBinStats();
/**
- * Returns the array of upper bounds for the bins. Bins are: <br>
+ * Returns the array of upper bounds for the bins. Bins are: <br/>
* [min,upperBounds[0]],(upperBounds[0],upperBounds[1]],...,
* (upperBounds[binCount-1],max]
* @return array of bin upper bounds
1.4 +10 -8 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/RandomDataImpl.java
Index: RandomDataImpl.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/RandomDataImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- RandomDataImpl.java 7 Sep 2003 03:12:56 -0000 1.3
+++ RandomDataImpl.java 17 Sep 2003 19:29:31 -0000 1.4
@@ -470,13 +470,13 @@
/**
* Sets the PRNG algorithm for the underlying SecureRandom instance
- * using the Security Provider API, as defined in
- * <a href="http://java.sun.com/j2se/1.3/docs/guide/security/
- * CryptoSpec.html#AppA">
+ * using the Security Provider API. The Security Provider API is defined in
+ * <a href="http://java.sun.com/j2se/1.3/docs/guide/security/CryptoSpec.html#AppA">
* Java Cryptography Architecture API Specification & Reference.</a>
* <p>
* <strong>USAGE NOTE:</strong> This method carries <i>significant</i>
* overhead and may take several seconds to execute.
+ * </p>
*
* @param algorithm the name of the PRNG algorithm
* @param provider the name of the provider
@@ -491,9 +491,10 @@
}
/**
- * Uses a 2-cycle permutation shuffle, as described
+ * Uses a 2-cycle permutation shuffle to generate a random permutation.
+ * The shuffling process is described
* <a href=http://www.maths.abdn.ac.uk/~igc/tch/mx4002/notes/node83.html>
- * here</a>
+ * here</a>.
* @param n the population size.
* @param k the number to choose.
* @return the random permutation.
@@ -519,6 +520,7 @@
}
/**
+ * Uses a 2-cycle permutation shuffle to generate a random permutation.
* <strong>Algorithm Description</strong>: Uses a 2-cycle permutation
* shuffle to generate a random permutation of <code>c.size()</code> and
* then returns the elements whose indexes correspond to the elements of
@@ -553,8 +555,8 @@
//------------------------Private methods----------------------------------
/**
- * <strong>Algorithm Description</strong>: Uses a 2-cycle permutation
- * shuffle to randomly re-order the last <code>end</code> elements of list.
+ * Uses a 2-cycle permutation shuffle to randomly re-order the last elements
+ * of list.
*
* @param list list to be shuffled
* @param end element past which shuffling begins
1.2 +3 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 22 Jun 2003 03:57:57 -0000 1.1
+++ package.html 17 Sep 2003 19:29:31 -0000 1.2
@@ -1,5 +1,4 @@
<html>
- <body>
- Provides common math utilities such as statistics and a matrix class.
- </body>
-</html>
\ No newline at end of file
+ <!-- $Revision$ $Date$ -->
+ <body>Random number and random data generators.</body>
+</html>
1.5 +3 -3 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
Index: EmpiricalDistributionImpl.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- EmpiricalDistributionImpl.java 7 Sep 2003 03:12:56 -0000 1.4
+++ EmpiricalDistributionImpl.java 17 Sep 2003 19:29:31 -0000 1.5
@@ -65,8 +65,8 @@
import org.apache.commons.math.stat.UnivariateImpl;
/**
- * Implements <code>EmpiricalDistribution</code> interface using
- * what amounts to the
+ * Implements <code>EmpiricalDistribution</code> interface. This implementation
+ * uses what amounts to the
* <a href="http://nedwww.ipac.caltech.edu/level5/March02/Silverman/Silver2_6.html">
* Variable Kernel Method</a> with Gaussian smoothing:<p>
* <strong>Digesting the input file</strong>
1.2 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/special/BetaTest.java
Index: BetaTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/special/BetaTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BetaTest.java 14 Jun 2003 04:17:49 -0000 1.1
+++ BetaTest.java 17 Sep 2003 19:29:31 -0000 1.2
@@ -56,7 +56,7 @@
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class BetaTest extends TestCase {
/**
1.3 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/special/GammaTest.java
Index: GammaTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/special/GammaTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- GammaTest.java 18 Jun 2003 20:02:27 -0000 1.2
+++ GammaTest.java 17 Sep 2003 19:29:31 -0000 1.3
@@ -58,7 +58,7 @@
import junit.framework.TestCase;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class GammaTest extends TestCase {
/**
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/SumTest.java
Index: SumTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/SumTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SumTest.java 7 Jul 2003 23:19:22 -0000 1.3
+++ SumTest.java 17 Sep 2003 19:29:31 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class SumTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/SumSqTest.java
Index: SumSqTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/SumSqTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SumSqTest.java 7 Jul 2003 23:19:22 -0000 1.3
+++ SumSqTest.java 17 Sep 2003 19:29:31 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class SumSqTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/ProductTest.java
Index: ProductTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/ProductTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ProductTest.java 7 Jul 2003 23:19:22 -0000 1.3
+++ ProductTest.java 17 Sep 2003 19:29:31 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class ProductTest extends StorelessUnivariateStatisticAbstractTest{
1.4 +1 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/SumLogTest.java
Index: SumLogTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/univariate/summary/SumLogTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SumLogTest.java 7 Jul 2003 23:19:22 -0000 1.3
+++ SumLogTest.java 17 Sep 2003 19:29:31 -0000 1.4
@@ -58,10 +58,10 @@
import org.apache.commons.math.stat.univariate.StorelessUnivariateStatisticAbstractTest;
import org.apache.commons.math.stat.univariate.UnivariateStatistic;
-import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
/**
* Test cases for the {@link UnivariateStatistic} class.
+ * @version $Revision$ $Date$
*/
public class SumLogTest extends StorelessUnivariateStatisticAbstractTest{
1.2 +2 -1 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/analysis/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/analysis/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 22 Jun 2003 03:57:53 -0000 1.1
+++ package.html 17 Sep 2003 19:29:32 -0000 1.2
@@ -1,5 +1,6 @@
<html>
+ <!-- $Revision$ $Date$ -->
<body>
- Provides common math utilities such as statistics and a matrix class.
+ Implementations of common numerical analysis procedures, including root finding and function interpolation.
</body>
</html>
1.6 +13 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java
Index: UnivariateRealSolverFactory.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- UnivariateRealSolverFactory.java 7 Sep 2003 03:12:56 -0000 1.5
+++ UnivariateRealSolverFactory.java 17 Sep 2003 19:29:32 -0000 1.6
@@ -53,6 +53,8 @@
*/
package org.apache.commons.math.analysis;
+import org.apache.commons.discovery.tools.DiscoverClass;
+
/**
* A factory to easily get a default solver and some convenience
* functions.
@@ -73,11 +75,18 @@
/**
* Create a new factory.
* @return a new factory.
- * @todo for now, return the only concrete factory. Later, allow for a
- * plugable implementation, possibly using SPI and commons-discovery.
*/
public static UnivariateRealSolverFactory newInstance() {
- return new UnivariateRealSolverFactoryImpl();
+ UnivariateRealSolverFactory factory = null;
+ try {
+ DiscoverClass dc = new DiscoverClass();
+ factory = (UnivariateRealSolverFactory) dc.newInstance(
+ UnivariateRealSolverFactory.class,
+ "org.apache.commons.math.analysis.UnivariateRealSolverFactoryImpl");
+ } catch(Exception ex) {
+ // ignore as default implementation will be used.
+ }
+ return factory;
}
/**
1.2 +2 -2 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactoryImpl.java
Index: UnivariateRealSolverFactoryImpl.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactoryImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UnivariateRealSolverFactoryImpl.java 30 Jul 2003 22:06:37 -0000 1.1
+++ UnivariateRealSolverFactoryImpl.java 17 Sep 2003 19:29:32 -0000 1.2
@@ -70,7 +70,7 @@
/**
* Default constructor.
*/
- UnivariateRealSolverFactoryImpl() {
+ public UnivariateRealSolverFactoryImpl() {
}
/**
1.4 +1 -2 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/BeanListUnivariateImplTest.java
Index: BeanListUnivariateImplTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/BeanListUnivariateImplTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BeanListUnivariateImplTest.java 30 Jul 2003 21:58:11 -0000 1.3
+++ BeanListUnivariateImplTest.java 17 Sep 2003 19:29:32 -0000 1.4
@@ -65,7 +65,6 @@
/**
* Test cases for the {@link BeanListUnivariateImpl} class.
*
- * @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
* @version $Revision$ $Date$
*/
1.7 +1 -2 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/UnivariateImplTest.java
Index: UnivariateImplTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/stat/UnivariateImplTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- UnivariateImplTest.java 9 Jul 2003 21:45:24 -0000 1.6
+++ UnivariateImplTest.java 17 Sep 2003 19:29:32 -0000 1.7
@@ -60,7 +60,6 @@
/**
* Test cases for the {@link Univariate} class.
*
- * @author Tim Obrien
* @version $Revision$ $Date$
*/
1.2 +3 -0 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/beans/Patient.java
Index: Patient.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/beans/Patient.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Patient.java 29 May 2003 19:41:32 -0000 1.1
+++ Patient.java 17 Sep 2003 19:29:32 -0000 1.2
@@ -53,6 +53,9 @@
*/
package org.apache.commons.math.beans;
+/**
+ * @version $Revision$ $Date$
+ */
public class Patient {
private VitalStats vitalStats;
1.2 +3 -0 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/beans/VitalStats.java
Index: VitalStats.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/beans/VitalStats.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- VitalStats.java 29 May 2003 19:41:32 -0000 1.1
+++ VitalStats.java 17 Sep 2003 19:29:32 -0000 1.2
@@ -53,6 +53,9 @@
*/
package org.apache.commons.math.beans;
+/**
+ * @version $Revision$ $Date$
+ */
public class VitalStats {
private Double heartrate;
1.2 +3 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/stat/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 22 Jun 2003 03:57:55 -0000 1.1
+++ package.html 17 Sep 2003 19:29:32 -0000 1.2
@@ -1,5 +1,4 @@
<html>
- <body>
- Provides common math utilities such as statistics and a matrix class.
- </body>
-</html>
\ No newline at end of file
+ <!-- $Revision$ $Date$ -->
+ <body>Data storage, manipulation and summary routines.</body>
+</html>
1.2 +3 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 15 May 2003 05:39:00 -0000 1.1
+++ package.html 17 Sep 2003 19:29:32 -0000 1.2
@@ -1,5 +1,4 @@
<html>
- <body>
- Provides common math utilities such as statistics and a matrix class.
- </body>
-</html>
\ No newline at end of file
+ <!-- $Revision$ $Date$ -->
+ <body>Common classes used throughout the commons-math library.</body>
+</html>
1.2 +55 -1 jakarta-commons-sandbox/math/src/test/org/apache/commons/math/TestUtils.java
Index: TestUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/TestUtils.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestUtils.java 14 Jun 2003 04:24:43 -0000 1.1
+++ TestUtils.java 17 Sep 2003 19:29:32 -0000 1.2
@@ -1,9 +1,63 @@
+/* ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Commons", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+
package org.apache.commons.math;
import junit.framework.Assert;
/**
- * @author Brent Worden
+ * @version $Revision$ $Date$
*/
public class TestUtils {
/**
1.2 +3 -4 jakarta-commons-sandbox/math/src/java/org/apache/commons/math/linear/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/linear/package.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- package.html 22 Jun 2003 03:57:57 -0000 1.1
+++ package.html 17 Sep 2003 19:29:32 -0000 1.2
@@ -1,5 +1,4 @@
<html>
- <body>
- Provides common math utilities such as statistics and a matrix class.
- </body>
-</html>
\ No newline at end of file
+ <!-- $Revision$ $Date$ -->
+ <body>Linear algebra support.</body>
+</html>