mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 10:09:26 +00:00
to http://issues.apache.org/bugzilla git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@149300 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9edd1441d2
commit
3bad03d075
@ -41,5 +41,5 @@ maven.javadoc.links = http://java.sun.com/j2se/1.4.2/docs/api/,\
|
|||||||
http://jakarta.apache.org/commons/discovery/api/,\
|
http://jakarta.apache.org/commons/discovery/api/,\
|
||||||
http://jakarta.apache.org/commons/logging/api/
|
http://jakarta.apache.org/commons/logging/api/
|
||||||
|
|
||||||
maven.changes.issue.template=http://nagoya.apache.org/bugzilla/show_bug.cgi?id=%ISSUE%
|
maven.changes.issue.template=http://issues.apache.org/bugzilla/show_bug.cgi?id=%ISSUE%
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2004 The Apache Software Foundation.
|
* Copyright 2003-2004 The Apache Software Foundation.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -19,8 +19,8 @@ package org.apache.commons.math.distribution;
|
|||||||
* Test cases for TDistribution.
|
* Test cases for TDistribution.
|
||||||
* Extends ContinuousDistributionAbstractTest. See class javadoc for
|
* Extends ContinuousDistributionAbstractTest. See class javadoc for
|
||||||
* ContinuousDistributionAbstractTest for details.
|
* ContinuousDistributionAbstractTest for details.
|
||||||
*
|
*
|
||||||
* @version $Revision: 1.15 $ $Date: 2004/07/24 21:41:37 $
|
* @version $Revision: 1.15 $ $Date$
|
||||||
*/
|
*/
|
||||||
public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
||||||
|
|
||||||
@ -33,12 +33,12 @@ public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//-------------- Implementations for abstract methods -----------------------
|
//-------------- Implementations for abstract methods -----------------------
|
||||||
|
|
||||||
/** Creates the default continuous distribution instance to use in tests. */
|
/** Creates the default continuous distribution instance to use in tests. */
|
||||||
public ContinuousDistribution makeDistribution() {
|
public ContinuousDistribution makeDistribution() {
|
||||||
return DistributionFactory.newInstance().createTDistribution(5.0);
|
return DistributionFactory.newInstance().createTDistribution(5.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Creates the default cumulative probability distribution test input values */
|
/** Creates the default cumulative probability distribution test input values */
|
||||||
public double[] makeCumulativeTestPoints() {
|
public double[] makeCumulativeTestPoints() {
|
||||||
// quantiles computed using R version 1.8.1 (linux version)
|
// quantiles computed using R version 1.8.1 (linux version)
|
||||||
@ -46,13 +46,13 @@ public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
|||||||
-1.475884, 5.89343, 3.36493, 2.570582,
|
-1.475884, 5.89343, 3.36493, 2.570582,
|
||||||
2.015048, 1.475884};
|
2.015048, 1.475884};
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Creates the default cumulative probability density test expected values */
|
/** Creates the default cumulative probability density test expected values */
|
||||||
public double[] makeCumulativeTestValues() {
|
public double[] makeCumulativeTestValues() {
|
||||||
return new double[] {0.001d, 0.01d, 0.025d, 0.05d, 0.1d, 0.999d,
|
return new double[] {0.001d, 0.01d, 0.025d, 0.05d, 0.1d, 0.999d,
|
||||||
0.990d, 0.975d, 0.950d, 0.900d};
|
0.990d, 0.975d, 0.950d, 0.900d};
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------- Override tolerance --------------
|
// --------------------- Override tolerance --------------
|
||||||
protected void setup() throws Exception {
|
protected void setup() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
@ -61,7 +61,7 @@ public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
|||||||
|
|
||||||
//---------------------------- Additional test cases -------------------------
|
//---------------------------- Additional test cases -------------------------
|
||||||
/**
|
/**
|
||||||
* @see <a href="http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27243">
|
* @see <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=27243">
|
||||||
* Bug report that prompted this unit test.</a>
|
* Bug report that prompted this unit test.</a>
|
||||||
*/
|
*/
|
||||||
public void testCumulativeProbabilityAgaintStackOverflow() throws Exception {
|
public void testCumulativeProbabilityAgaintStackOverflow() throws Exception {
|
||||||
@ -70,7 +70,7 @@ public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
|||||||
est = td.cumulativeProbability(.1);
|
est = td.cumulativeProbability(.1);
|
||||||
est = td.cumulativeProbability(.01);
|
est = td.cumulativeProbability(.01);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testSmallDf() throws Exception {
|
public void testSmallDf() throws Exception {
|
||||||
setDistribution(DistributionFactory.newInstance().createTDistribution(1d));
|
setDistribution(DistributionFactory.newInstance().createTDistribution(1d));
|
||||||
setTolerance(1E-4);
|
setTolerance(1E-4);
|
||||||
@ -82,14 +82,14 @@ public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
|||||||
verifyCumulativeProbabilities();
|
verifyCumulativeProbabilities();
|
||||||
verifyInverseCumulativeProbabilities();
|
verifyInverseCumulativeProbabilities();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testInverseCumulativeProbabilityExtremes() throws Exception {
|
public void testInverseCumulativeProbabilityExtremes() throws Exception {
|
||||||
setInverseCumulativeTestPoints(new double[] {0, 1});
|
setInverseCumulativeTestPoints(new double[] {0, 1});
|
||||||
setInverseCumulativeTestValues(
|
setInverseCumulativeTestValues(
|
||||||
new double[] {Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY});
|
new double[] {Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY});
|
||||||
verifyInverseCumulativeProbabilities();
|
verifyInverseCumulativeProbabilities();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testDfAccessors() {
|
public void testDfAccessors() {
|
||||||
TDistribution distribution = (TDistribution) getDistribution();
|
TDistribution distribution = (TDistribution) getDistribution();
|
||||||
assertEquals(5d, distribution.getDegreesOfFreedom(), Double.MIN_VALUE);
|
assertEquals(5d, distribution.getDegreesOfFreedom(), Double.MIN_VALUE);
|
||||||
@ -101,6 +101,6 @@ public class TDistributionTest extends ContinuousDistributionAbstractTest {
|
|||||||
} catch (IllegalArgumentException ex) {
|
} catch (IllegalArgumentException ex) {
|
||||||
// expected
|
// expected
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<?xml-stylesheet type="text/xsl" href="xdoc.xsl"?>
|
<?xml-stylesheet type="text/xsl" href="xdoc.xsl"?>
|
||||||
<!-- $Revision: 1.15 $ $Date: 2004/11/08 00:56:06 $ -->
|
<!-- $Revision: 1.15 $ $Date$ -->
|
||||||
<document>
|
<document>
|
||||||
<properties>
|
<properties>
|
||||||
<title>Developers Guide</title>
|
<title>Developers Guide</title>
|
||||||
@ -62,20 +62,20 @@
|
|||||||
Make any proposals here where the group can comment on them.
|
Make any proposals here where the group can comment on them.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="http://nagoya.apache.org/bugzilla/createaccount.cgi">
|
<a href="http://issues.apache.org/bugzilla/createaccount.cgi">
|
||||||
Setup an account on Bugzilla</a> and use it to submit patches and
|
Setup an account on Bugzilla</a> and use it to submit patches and
|
||||||
identify bugs. Read the
|
identify bugs. Read the
|
||||||
<a href="http://nagoya.apache.org/bugzilla/bugwritinghelp.html">
|
<a href="http://issues.apache.org/bugzilla/bugwritinghelp.html">
|
||||||
directions</a> for submitting bugs and search the database to
|
directions</a> for submitting bugs and search the database to
|
||||||
determine if an issue exists or has already been dealt with.
|
determine if an issue exists or has already been dealt with.
|
||||||
<p>
|
<p>
|
||||||
Submitting Issues:
|
Submitting Issues:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://nagoya.apache.org/bugzilla/enter_bug.cgi?reporter=&product=Commons&version=unspecified&component=Math&rep_platform=All&op_sys=All&priority=Other&bug_severity=normal&bug_status=NEW&assigned_to=&cc=&bug_file_loc=&short_desc=%5Bpatch%5D+%22Your+subject+heading+here%22&comment=Please+provide+details+here.+Its+best+to+submit+patches+that+alter+existing+file%0D%0Acontent+in+%22unified+cvs+diff%22+format.+%0D%0A%0D%0ASubmissions+that+provide+new+files+can+be+supplied+as+direct+file+attachments+or%0D%0Aarchives+in+zip+or+tar.gz+format.+please+be+kind+enough+to+identify+the+format%0D%0Aof+the+attached+archive+as+bugzill+tends+to+strip+these+characterstics+by%0D%0Aremoving+the+files+extension.&maketemplate=Remember+values+as+bookmarkable+template&form_name=enter_bug">
|
<li><a href="http://issues.apache.org/bugzilla/enter_bug.cgi?reporter=&product=Commons&version=unspecified&component=Math&rep_platform=All&op_sys=All&priority=Other&bug_severity=normal&bug_status=NEW&assigned_to=&cc=&bug_file_loc=&short_desc=%5Bpatch%5D+%22Your+subject+heading+here%22&comment=Please+provide+details+here.+Its+best+to+submit+patches+that+alter+existing+file%0D%0Acontent+in+%22unified+cvs+diff%22+format.+%0D%0A%0D%0ASubmissions+that+provide+new+files+can+be+supplied+as+direct+file+attachments+or%0D%0Aarchives+in+zip+or+tar.gz+format.+please+be+kind+enough+to+identify+the+format%0D%0Aof+the+attached+archive+as+bugzill+tends+to+strip+these+characterstics+by%0D%0Aremoving+the+files+extension.&maketemplate=Remember+values+as+bookmarkable+template&form_name=enter_bug">
|
||||||
Bookmarkable Template for submitting patches.
|
Bookmarkable Template for submitting patches.
|
||||||
</a></li>
|
</a></li>
|
||||||
<li><a href="http://nagoya.apache.org/bugzilla/enter_bug.cgi?reporter=&product=Commons&version=unspecified&component=Math&rep_platform=All&op_sys=All&priority=Other&bug_severity=normal&bug_status=NEW&assigned_to=&cc=&bug_file_loc=http%3A%2F%2F&short_desc=%5Bbug+report%5D+%22Your+subject+heading+here%22&comment=Please+review+the+bug+writing+guidelines+and+supply+as+much+detail+as+possible%0D%0Ato+allow+us+to+diagnose+and+correct+the+existing+issue.+Please+search+the+bug%0D%0Adatabase+to+determine+if+the+bug+has+possibly+been+addressed+in+the+past.&maketemplate=Remember+values+as+bookmarkable+template&form_name=enter_bug">
|
<li><a href="http://issues.apache.org/bugzilla/enter_bug.cgi?reporter=&product=Commons&version=unspecified&component=Math&rep_platform=All&op_sys=All&priority=Other&bug_severity=normal&bug_status=NEW&assigned_to=&cc=&bug_file_loc=http%3A%2F%2F&short_desc=%5Bbug+report%5D+%22Your+subject+heading+here%22&comment=Please+review+the+bug+writing+guidelines+and+supply+as+much+detail+as+possible%0D%0Ato+allow+us+to+diagnose+and+correct+the+existing+issue.+Please+search+the+bug%0D%0Adatabase+to+determine+if+the+bug+has+possibly+been+addressed+in+the+past.&maketemplate=Remember+values+as+bookmarkable+template&form_name=enter_bug">
|
||||||
Bookmarkable Template for submitting bugs.
|
Bookmarkable Template for submitting bugs.
|
||||||
</a></li>
|
</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -84,10 +84,10 @@
|
|||||||
Querying the Database:
|
Querying the Database:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="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=Math&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&newqueryname=&order=Reuse+same+sort+as+last+time">
|
<li><a href="http://issues.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=Math&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&newqueryname=&order=Reuse+same+sort+as+last+time">
|
||||||
New and Existing Issues.
|
New and Existing Issues.
|
||||||
</a></li>
|
</a></li>
|
||||||
<li><a href="http://nagoya.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Commons&component=Math&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&newqueryname=&order=Reuse+same+sort+as+last+time">
|
<li><a href="http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Commons&component=Math&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&newqueryname=&order=Reuse+same+sort+as+last+time">
|
||||||
Resolved and Closed Issues.
|
Resolved and Closed Issues.
|
||||||
</a></li>
|
</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user