You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2012/07/20 01:02:47 UTC

svn commit: r1363575 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java

Author: erans
Date: Thu Jul 19 23:02:47 2012
New Revision: 1363575

URL: http://svn.apache.org/viewvc?rev=1363575&view=rev
Log:
MATH-829
Removed "throws" clause from method signature.

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=1363575&r1=1363574&r2=1363575&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 Thu Jul 19 23:02:47 2012
@@ -401,7 +401,7 @@ public class TestUtils {
      * @param observed observed counts
      * @param alpha significance level of the test
      */
-    public static void assertChiSquareAccept(String[] valueLabels, double[] expected, long[] observed, double alpha) throws Exception {
+    public static void assertChiSquareAccept(String[] valueLabels, double[] expected, long[] observed, double alpha) {
         ChiSquareTest chiSquareTest = new ChiSquareTest();
 
         // Fail if we can reject null hypothesis that distributions are the same
@@ -439,7 +439,7 @@ public class TestUtils {
      * @param observed observed counts
      * @param alpha significance level of the test
      */
-    public static void assertChiSquareAccept(int[] values, double[] expected, long[] observed, double alpha) throws Exception {
+    public static void assertChiSquareAccept(int[] values, double[] expected, long[] observed, double alpha) {
         String[] labels = new String[values.length];
         for (int i = 0; i < values.length; i++) {
             labels[i] = Integer.toString(values[i]);
@@ -455,7 +455,7 @@ public class TestUtils {
      * @param observed observed counts
      * @param alpha significance level of the test
      */
-    public static void assertChiSquareAccept(double[] expected, long[] observed, double alpha) throws Exception {
+    public static void assertChiSquareAccept(double[] expected, long[] observed, double alpha) {
         String[] labels = new String[expected.length];
         for (int i = 0; i < labels.length; i++) {
             labels[i] = Integer.toString(i + 1);
@@ -467,7 +467,7 @@ public class TestUtils {
      * Computes the 25th, 50th and 75th percentiles of the given distribution and returns
      * these values in an array.
      */
-    public static double[] getDistributionQuartiles(RealDistribution distribution) throws Exception {
+    public static double[] getDistributionQuartiles(RealDistribution distribution) {
         double[] quantiles = new double[3];
         quantiles[0] = distribution.inverseCumulativeProbability(0.25d);
         quantiles[1] = distribution.inverseCumulativeProbability(0.5d);