RandomDataTest.testNextGaussian() was using Univarite.getN(). Added
an explicit cast from int to double. Test now succeeds. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@140854 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ca304541d8
commit
8216dd89b5
|
@ -63,7 +63,7 @@ import java.security.NoSuchAlgorithmException;
|
||||||
* Test cases for the RandomData class.
|
* Test cases for the RandomData class.
|
||||||
*
|
*
|
||||||
* @author Phil Steitz
|
* @author Phil Steitz
|
||||||
* @version $Revision: 1.1 $ $Date: 2003/05/18 00:58:52 $
|
* @version $Revision: 1.2 $ $Date: 2003/05/22 15:31:38 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public final class RandomDataTest extends TestCase {
|
public final class RandomDataTest extends TestCase {
|
||||||
|
@ -406,7 +406,7 @@ public final class RandomDataTest extends TestCase {
|
||||||
}
|
}
|
||||||
double xbar = u.getMean();
|
double xbar = u.getMean();
|
||||||
double s = u.getStandardDeviation();
|
double s = u.getStandardDeviation();
|
||||||
double n = u.getN();
|
double n = (double) u.getN();
|
||||||
/* t-test at .001-level TODO: replace with externalized t-test, with
|
/* t-test at .001-level TODO: replace with externalized t-test, with
|
||||||
* test statistic defined in TestStatistic
|
* test statistic defined in TestStatistic
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue