Submitted by: Brent Warden Reviewed by: Mark Diggory I also regenerated the build.xml using Maven to get the Discovery dependency added in. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@140996 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b7bef4b26
commit
5971a93e3f
|
@ -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,10 +149,12 @@
|
|||
</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>
|
||||
<get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
|
||||
|
|
|
@ -11,11 +11,7 @@ maven.xdoc.date=left
|
|||
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/
|
||||
|
|
250
project.xml
250
project.xml
|
@ -1,124 +1,132 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- $Revision: 1.24 $ $Date: 2003/09/17 19:29:28 $ -->
|
||||
<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>
|
||||
|
|
|
@ -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.
|
||||
|
@ -61,7 +63,7 @@ package org.apache.commons.math.analysis;
|
|||
* (this may be controversial, because the configuration data
|
||||
* may also be used for the default solver used by the static
|
||||
* solve() method).
|
||||
* @version $Revision: 1.5 $ $Date: 2003/09/07 03:12:56 $
|
||||
* @version $Revision: 1.6 $ $Date: 2003/09/17 19:29:32 $
|
||||
*/
|
||||
public abstract class UnivariateRealSolverFactory {
|
||||
/**
|
||||
|
@ -73,11 +75,18 @@ public abstract class UnivariateRealSolverFactory {
|
|||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -62,7 +62,7 @@ package org.apache.commons.math.analysis;
|
|||
* (this may be controversial, because the configuration data
|
||||
* may also be used for the default solver used by the static
|
||||
* solve() method).
|
||||
* @version $Revision: 1.1 $ $Date: 2003/07/30 22:06:37 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:32 $
|
||||
*/
|
||||
public class UnivariateRealSolverFactoryImpl
|
||||
extends UnivariateRealSolverFactory {
|
||||
|
@ -70,7 +70,7 @@ public class UnivariateRealSolverFactoryImpl
|
|||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
UnivariateRealSolverFactoryImpl() {
|
||||
public UnivariateRealSolverFactoryImpl() {
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:32 $ -->
|
||||
<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>
|
|
@ -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:
|
||||
|
@ -73,7 +75,7 @@ package org.apache.commons.math.stat.distribution;
|
|||
* ChiSquaredDistribution chi = factory.createChiSquareDistribution(5.0);
|
||||
* </pre>
|
||||
*
|
||||
* @version $Revision: 1.11 $ $Date: 2003/09/17 19:19:08 $
|
||||
* @version $Revision: 1.12 $ $Date: 2003/09/17 19:29:28 $
|
||||
*/
|
||||
public abstract class DistributionFactory {
|
||||
/**
|
||||
|
@ -86,11 +88,18 @@ public abstract class DistributionFactory {
|
|||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -58,13 +58,13 @@ package org.apache.commons.math.stat.distribution;
|
|||
* A concrete distribution factory. This is the default factory used by
|
||||
* Commons-Math.
|
||||
*
|
||||
* @version $Revision: 1.9 $ $Date: 2003/09/17 19:19:08 $
|
||||
* @version $Revision: 1.10 $ $Date: 2003/09/17 19:29:28 $
|
||||
*/
|
||||
public class DistributionFactoryImpl extends DistributionFactory {
|
||||
/**
|
||||
* Default constructor. Package scope to prevent unwanted instantiation.
|
||||
*/
|
||||
DistributionFactoryImpl() {
|
||||
public DistributionFactoryImpl() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ import org.apache.commons.math.special.Gamma;
|
|||
/**
|
||||
* The default implementation of {@link GammaDistribution}
|
||||
*
|
||||
* @version $Revision: 1.5 $ $Date: 2003/07/09 20:03:23 $
|
||||
* @version $Revision: 1.6 $ $Date: 2003/09/17 19:29:28 $
|
||||
*/
|
||||
public class GammaDistributionImpl extends AbstractContinuousDistribution
|
||||
implements GammaDistribution {
|
||||
|
@ -152,10 +152,10 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
|
|||
*
|
||||
* @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 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
|
|||
* @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 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
|
|||
*
|
||||
* @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,5 +1,4 @@
|
|||
<html>
|
||||
<body>
|
||||
Provides common math utilities such as statistics and a matrix class.
|
||||
</body>
|
||||
</html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:28 $ -->
|
||||
<body>Implementations of common discrete and continuous distributions.</body>
|
||||
</html>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<html>
|
||||
<body>
|
||||
Provides common math utilities such as statistics and a matrix class.
|
||||
</body>
|
||||
</html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:32 $ -->
|
||||
<body>Linear algebra support.</body>
|
||||
</html>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<html>
|
||||
<body>
|
||||
Provides common math utilities such as statistics and a matrix class.
|
||||
</body>
|
||||
</html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:32 $ -->
|
||||
<body>Common classes used throughout the commons-math library.</body>
|
||||
</html>
|
||||
|
|
|
@ -80,7 +80,7 @@ import org.apache.commons.math.stat.Univariate;
|
|||
* build grouped frequnecy histograms representing the input data or to
|
||||
* generate random values "like" those in the input file -- i.e., the values
|
||||
* generated will follow the distribution of the values in the file.
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/07 03:12:56 $
|
||||
* @version $Revision: 1.5 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public interface EmpiricalDistribution {
|
||||
|
||||
|
@ -99,7 +99,7 @@ public interface EmpiricalDistribution {
|
|||
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 @@ public interface EmpiricalDistribution {
|
|||
|
||||
|
||||
/**
|
||||
* <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 @@ public interface EmpiricalDistribution {
|
|||
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
|
||||
|
|
|
@ -65,8 +65,8 @@ import org.apache.commons.math.stat.Univariate;
|
|||
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>
|
||||
|
@ -89,7 +89,7 @@ import org.apache.commons.math.stat.UnivariateImpl;
|
|||
* entry per line.</li>
|
||||
* </ol></p>
|
||||
*
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/07 03:12:56 $
|
||||
* @version $Revision: 1.5 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class EmpiricalDistributionImpl implements Serializable,EmpiricalDistribution {
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ import java.util.Collection;
|
|||
* (so secure sequences started with calls to reseedSecure(long) won't be
|
||||
* identical).</li></ul>
|
||||
*
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/07 03:12:56 $
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class RandomDataImpl implements RandomData {
|
||||
|
||||
|
@ -470,13 +470,13 @@ public class RandomDataImpl implements RandomData {
|
|||
|
||||
/**
|
||||
* 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 @@ public class RandomDataImpl implements RandomData {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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 @@ public class RandomDataImpl implements RandomData {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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 @@ public class RandomDataImpl implements RandomData {
|
|||
//------------------------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,5 +1,4 @@
|
|||
<html>
|
||||
<body>
|
||||
Provides common math utilities such as statistics and a matrix class.
|
||||
</body>
|
||||
</html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:31 $ -->
|
||||
<body>Random number and random data generators.</body>
|
||||
</html>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<html>
|
||||
<body>
|
||||
Provides common math utilities such as statistics and a matrix class.
|
||||
</body>
|
||||
</html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:31 $ -->
|
||||
<body>Implementations of special functions such as Beta and Gamma.</body>
|
||||
</html>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<html>
|
||||
<body>
|
||||
Provides common math utilities such as statistics and a matrix class.
|
||||
</body>
|
||||
</html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:32 $ -->
|
||||
<body>Data storage, manipulation and summary routines.</body>
|
||||
</html>
|
||||
|
|
|
@ -62,7 +62,7 @@ import org
|
|||
.AbstractStorelessUnivariateStatistic;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.8 $ $Date: 2003/09/07 03:12:56 $
|
||||
* @version $Revision: 1.9 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class Kurtosis extends AbstractStorelessUnivariateStatistic {
|
||||
|
||||
|
@ -146,7 +146,9 @@ public class Kurtosis extends AbstractStorelessUnivariateStatistic {
|
|||
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 @@ public class Kurtosis extends AbstractStorelessUnivariateStatistic {
|
|||
* 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,
|
||||
|
|
|
@ -53,17 +53,10 @@
|
|||
*/
|
||||
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: 1.8 $ $Date: 2003/09/07 03:12:56 $
|
||||
* @version $Revision: 1.9 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class Skewness extends AbstractStorelessUnivariateStatistic {
|
||||
|
||||
|
@ -144,6 +137,8 @@ public class Skewness extends AbstractStorelessUnivariateStatistic {
|
|||
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 @@ public class Skewness extends AbstractStorelessUnivariateStatistic {
|
|||
* 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
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<html>
|
||||
<!-- $Revision: 1.1 $ $Date: 2003/09/17 19:29:29 $ -->
|
||||
<body>Summary statistics based on moments.</body>
|
||||
</html>
|
|
@ -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: 1.2 $ $Date: 2003/09/17 19:29:29 $ -->
|
||||
<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>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<html>
|
||||
<!-- $Revision: 1.1 $ $Date: 2003/09/17 19:29:31 $ -->
|
||||
<body>Summary statistics based on ranks.</body>
|
||||
</html>
|
|
@ -0,0 +1,4 @@
|
|||
<html>
|
||||
<!-- $Revision: 1.1 $ $Date: 2003/09/17 19:29:27 $ -->
|
||||
<body>Other summary statistics.</body>
|
||||
</html>
|
|
@ -55,9 +55,9 @@
|
|||
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: 1.3 $ $Date: 2003/08/09 04:03:41 $
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public final class MathUtils {
|
||||
|
||||
|
@ -274,10 +274,10 @@ public final class MathUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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 @@ public final class MathUtils {
|
|||
* 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 @@ public final class MathUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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 @@ public final class MathUtils {
|
|||
* < 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 @@ public final class MathUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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,5 +1,4 @@
|
|||
<html>
|
||||
<body>
|
||||
Provides common math utilities such as statistics and a matrix class.
|
||||
</body>
|
||||
</html>
|
||||
<!-- $Revision: 1.2 $ $Date: 2003/09/17 19:29:31 $ -->
|
||||
<body>Convience routines and common data structure used throughout the commons-math library.</body>
|
||||
</html>
|
||||
|
|
|
@ -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: 1.2 $ $Date: 2003/09/17 19:29:32 $
|
||||
*/
|
||||
public class TestUtils {
|
||||
/**
|
||||
|
|
|
@ -58,7 +58,7 @@ import org.apache.commons.math.MathException;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public final class BisectionSolverTest extends TestCase {
|
||||
/**
|
||||
|
|
|
@ -61,9 +61,8 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* Test the interpolation framework.
|
||||
*
|
||||
* @author pietsch at apache.org
|
||||
*
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class InterpolatorTest extends TestCase {
|
||||
|
||||
|
|
|
@ -57,9 +57,8 @@ import org.apache.commons.math.MathException;
|
|||
|
||||
/**
|
||||
* Auxillary class for testing solvers.
|
||||
*
|
||||
* @author pietsch at apache.org
|
||||
*
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class QuinticFunction implements UnivariateRealFunction {
|
||||
|
||||
|
|
|
@ -69,8 +69,7 @@ import junit.framework.TestSuite;
|
|||
* 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: 1.3 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public final class RealSolverTest extends TestCase {
|
||||
|
||||
|
|
|
@ -63,8 +63,7 @@ import org.apache.commons.math.MathException;
|
|||
* which means linear approximation (Regula Falsi) will converge
|
||||
* quadratically.
|
||||
*
|
||||
* @author pietsch at apache.org
|
||||
*
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class SinFunction implements UnivariateRealFunction {
|
||||
|
||||
|
|
|
@ -53,6 +53,9 @@
|
|||
*/
|
||||
package org.apache.commons.math.beans;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:32 $
|
||||
*/
|
||||
public class Patient {
|
||||
|
||||
private VitalStats vitalStats;
|
||||
|
|
|
@ -53,6 +53,9 @@
|
|||
*/
|
||||
package org.apache.commons.math.beans;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:32 $
|
||||
*/
|
||||
public class VitalStats {
|
||||
|
||||
private Double heartrate;
|
||||
|
|
|
@ -56,7 +56,7 @@ package org.apache.commons.math.stat.distribution;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author Brent Worden
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:30 $
|
||||
*/
|
||||
public class BinomialDistributionTest extends TestCase {
|
||||
private BinomialDistribution b;
|
||||
|
|
|
@ -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: 1.4 $ $Date: 2003/09/17 19:29:30 $
|
||||
*/
|
||||
public class ChiSquareDistributionTest extends TestCase {
|
||||
private ChiSquaredDistribution chiSquare;
|
||||
|
|
|
@ -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: 1.9 $ $Date: 2003/09/17 19:29:30 $
|
||||
*/
|
||||
public class DistributionFactoryImplTest extends TestCase {
|
||||
/** */
|
||||
|
|
|
@ -58,7 +58,7 @@ import org.apache.commons.math.TestUtils;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author Brent Worden
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:30 $
|
||||
*/
|
||||
public class ExponentialDistributionTest extends TestCase {
|
||||
private ExponentialDistribution exp;
|
||||
|
|
|
@ -56,7 +56,7 @@ package org.apache.commons.math.stat.distribution;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author Brent Worden
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:30 $
|
||||
*/
|
||||
public class FDistributionTest extends TestCase {
|
||||
private FDistribution f;
|
||||
|
|
|
@ -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: 1.4 $ $Date: 2003/09/17 19:29:30 $
|
||||
*/
|
||||
public class GammaDistributionTest extends TestCase {
|
||||
/**
|
||||
|
|
|
@ -56,7 +56,7 @@ package org.apache.commons.math.stat.distribution;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author Brent Worden
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:30 $
|
||||
*/
|
||||
public class TDistributionTest extends TestCase {
|
||||
private TDistribution t;
|
||||
|
|
|
@ -64,7 +64,7 @@ import org.apache.commons.math.stat.UnivariateImpl;
|
|||
/**
|
||||
* Test cases for the ValueServer class.
|
||||
*
|
||||
* @version $Revision: 1.2 $
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
|
||||
public final class ValueServerTest extends TestCase {
|
||||
|
|
|
@ -56,7 +56,7 @@ package org.apache.commons.math.special;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author Brent Worden
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class BetaTest extends TestCase {
|
||||
/**
|
||||
|
|
|
@ -58,7 +58,7 @@ import org.apache.commons.math.TestUtils;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author Brent Worden
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class GammaTest extends TestCase {
|
||||
/**
|
||||
|
|
|
@ -65,8 +65,7 @@ import org.apache.commons.math.beans.*;
|
|||
/**
|
||||
* Test cases for the {@link BeanListUnivariateImpl} class.
|
||||
*
|
||||
* @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
|
||||
* @version $Revision: 1.3 $ $Date: 2003/07/30 21:58:11 $
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:32 $
|
||||
*/
|
||||
|
||||
public final class BeanListUnivariateImplTest extends TestCase {
|
||||
|
|
|
@ -60,8 +60,7 @@ import junit.framework.TestSuite;
|
|||
/**
|
||||
* Test cases for the {@link Univariate} class.
|
||||
*
|
||||
* @author Tim Obrien
|
||||
* @version $Revision: 1.6 $ $Date: 2003/07/09 21:45:24 $
|
||||
* @version $Revision: 1.7 $ $Date: 2003/09/17 19:29:32 $
|
||||
*/
|
||||
|
||||
public final class UnivariateImplTest extends TestCase {
|
||||
|
|
|
@ -62,7 +62,7 @@ import org.apache.commons.math.stat.univariate.moment.Variance;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:28 $
|
||||
*/
|
||||
public class InteractionTest extends TestCase {
|
||||
|
||||
|
|
|
@ -53,10 +53,10 @@
|
|||
*/
|
||||
package org.apache.commons.math.stat.univariate;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* Test cases for the {@link UnivariateStatistic} class.
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:28 $
|
||||
*/
|
||||
public abstract class StorelessUnivariateStatisticAbstractTest
|
||||
extends UnivariateStatisticAbstractTest {
|
||||
|
|
|
@ -57,6 +57,7 @@ import junit.framework.TestCase;
|
|||
|
||||
/**
|
||||
* Test cases for the {@link UnivariateStatistic} class.
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:28 $
|
||||
*/
|
||||
public abstract class UnivariateStatisticAbstractTest extends TestCase {
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.3 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class GeometricMeanTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class KurtosisTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class MeanTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,11 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class SkewnessTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,11 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class StandardDeviationTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,11 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:27 $
|
||||
*/
|
||||
public class VarianceTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class MaxTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
|
|||
|
||||
/**
|
||||
* Test cases for the {@link UnivariateStatistic} class.
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class MedianTest extends UnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class MinTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest;
|
|||
|
||||
/**
|
||||
* Test cases for the {@link UnivariateStatistic} class.
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class PercentileTest extends UnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class ProductTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class SumLogTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class SumSqTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -58,10 +58,10 @@ import junit.framework.TestSuite;
|
|||
|
||||
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: 1.4 $ $Date: 2003/09/17 19:29:31 $
|
||||
*/
|
||||
public class SumTest extends StorelessUnivariateStatisticAbstractTest{
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ package org.apache.commons.math.util;
|
|||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author Brent Worden
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class ContinuedFractionTest extends TestCase {
|
||||
/**
|
||||
|
|
|
@ -57,7 +57,7 @@ package org.apache.commons.math.util;
|
|||
/**
|
||||
* This class contains test cases for the ExpandableDoubleArray.
|
||||
*
|
||||
* @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
|
||||
* @version $Revision: 1.2 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class ContractableDoubleArrayTest extends ExpandableDoubleArrayTest {
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ import junit.framework.TestCase;
|
|||
/**
|
||||
* This class contains test cases for the ExpandableDoubleArray.
|
||||
*
|
||||
* @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public abstract class DoubleArrayAbstractTest extends TestCase {
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ package org.apache.commons.math.util;
|
|||
/**
|
||||
* This class contains test cases for the ExpandableDoubleArray.
|
||||
*
|
||||
* @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
|
||||
* @version $Revision: 1.3 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class ExpandableDoubleArrayTest extends DoubleArrayAbstractTest {
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ package org.apache.commons.math.util;
|
|||
/**
|
||||
* This class contains test cases for the ExpandableDoubleArray.
|
||||
*
|
||||
* @author <a href="mailto:tobrien@apache.org">Tim O'Brien</a>
|
||||
* @version $Revision: 1.4 $ $Date: 2003/09/17 19:29:29 $
|
||||
*/
|
||||
public class FixedDoubleArrayTest extends DoubleArrayAbstractTest {
|
||||
|
||||
|
|
Loading…
Reference in New Issue