Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6EA09011 for ; Mon, 28 May 2012 19:32:18 +0000 (UTC) Received: (qmail 20331 invoked by uid 500); 28 May 2012 19:32:18 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 20268 invoked by uid 500); 28 May 2012 19:32:18 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 20259 invoked by uid 99); 28 May 2012 19:32:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 May 2012 19:32:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 May 2012 19:32:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2FF272388865 for ; Mon, 28 May 2012 19:31:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1343370 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java Date: Mon, 28 May 2012 19:31:54 -0000 To: commits@commons.apache.org From: psteitz@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120528193155.2FF272388865@eris.apache.org> Author: psteitz Date: Mon May 28 19:31:54 2012 New Revision: 1343370 URL: http://svn.apache.org/viewvc?rev=1343370&view=rev Log: Improved javadoc, eliminated unused (and unlikely to ever be used) method. Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java?rev=1343370&r1=1343369&r2=1343370&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java (original) +++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java Mon May 28 19:31:54 2012 @@ -350,7 +350,7 @@ public class TestUtils { * Asserts the null hypothesis for a ChiSquare test. Fails and dumps arguments and test * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)% * - * @param valueLabels + * @param valueLabels labels for the values of the discrete distribution under test * @param expected expected counts * @param observed observed counts * @param alpha significance level of the test @@ -388,7 +388,7 @@ public class TestUtils { * Asserts the null hypothesis for a ChiSquare test. Fails and dumps arguments and test * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)% * - * @param values + * @param values integer values whose observed and expected counts are being compared * @param expected expected counts * @param observed observed counts * @param alpha significance level of the test @@ -405,23 +405,6 @@ public class TestUtils { * Asserts the null hypothesis for a ChiSquare test. Fails and dumps arguments and test * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)% * - * @param values - * @param expected expected counts - * @param observed observed counts - * @param alpha significance level of the test - */ - public static void assertChiSquareAccept(double[] values, double[] expected, long[] observed, double alpha) throws Exception { - String[] labels = new String[values.length]; - for (int i = 0; i < values.length; i++) { - labels[i] = Double.toString(values[i]); - } - assertChiSquareAccept(labels, expected, observed, alpha); - } - - /** - * Asserts the null hypothesis for a ChiSquare test. Fails and dumps arguments and test - * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)% - * * @param expected expected counts * @param observed observed counts * @param alpha significance level of the test