commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r992191 - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/stat/descriptive/ test/java/org/apache/commons/math/stat/descriptive/ test/java/org/apache/commons/math/stat/descriptive/summary/
Date Fri, 03 Sep 2010 03:46:53 GMT
Author: billbarker
Date: Fri Sep  3 03:46:53 2010
New Revision: 992191

URL: http://svn.apache.org/viewvc?rev=992191&view=rev
Log:
tabs -> spaces. No functional change

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/ProductTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumTest.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java?rev=992191&r1=992190&r2=992191&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java
Fri Sep  3 03:46:53 2010
@@ -79,9 +79,9 @@ public abstract class AbstractUnivariate
         final double[] values,
         final int begin,
         final int length) {
-    	return test(values, begin, length, false);
+        return test(values, begin, length, false);
     }
-    
+
     /**
      * This method is used by <code>evaluate(double[], int, int)</code> methods
      * to verify that the input parameters designate a subarray of positive length.
@@ -105,28 +105,28 @@ public abstract class AbstractUnivariate
      */
     protected boolean test(final double[] values, final int begin, final int length, final
boolean allowEmpty){
 
-    	if (values == null) {
-    		throw new NullArgumentException(LocalizedFormats.INPUT_ARRAY);
-    	}
-
-    	if (begin < 0) {
-    		throw new NotPositiveException(LocalizedFormats.START_POSITION, begin);
-    	}
-
-    	if (length < 0) {
-    		throw new NotPositiveException(LocalizedFormats.LENGTH, length);
-    	}
-
-    	if (begin + length > values.length) {
-    		throw MathRuntimeException.createIllegalArgumentException(
-    				LocalizedFormats.SUBARRAY_ENDS_AFTER_ARRAY_END);
-    	}
-
-    	if (length == 0 && !allowEmpty) {
-    		return false;
-    	}
+        if (values == null) {
+            throw new NullArgumentException(LocalizedFormats.INPUT_ARRAY);
+        }
 
-    	return true;
+        if (begin < 0) {
+            throw new NotPositiveException(LocalizedFormats.START_POSITION, begin);
+        }
+
+        if (length < 0) {
+            throw new NotPositiveException(LocalizedFormats.LENGTH, length);
+        }
+
+        if (begin + length > values.length) {
+            throw MathRuntimeException.createIllegalArgumentException(
+                    LocalizedFormats.SUBARRAY_ENDS_AFTER_ARRAY_END);
+        }
+
+        if (length == 0 && !allowEmpty) {
+            return false;
+        }
+
+        return true;
 
     }
 
@@ -164,9 +164,9 @@ public abstract class AbstractUnivariate
         final double[] weights,
         final int begin,
         final int length) {
-    	return test(values, weights, begin, length, false);
+        return test(values, weights, begin, length, false);
     }
-    
+
     /**
      * This method is used by <code>evaluate(double[], double[], int, int)</code>
methods
      * to verify that the begin and length parameters designate a subarray of positive length
@@ -219,7 +219,7 @@ public abstract class AbstractUnivariate
             }
             if (weights[i] < 0) {
                 throw MathRuntimeException.createIllegalArgumentException(
-                      LocalizedFormats.NEGATIVE_ELEMENT_AT_INDEX, i, weights[i]);
+                        LocalizedFormats.NEGATIVE_ELEMENT_AT_INDEX, i, weights[i]);
             }
             if (!containsPositiveWeight && weights[i] > 0.0) {
                 containsPositiveWeight = true;

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java?rev=992191&r1=992190&r2=992191&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
Fri Sep  3 03:46:53 2010
@@ -74,7 +74,7 @@ public abstract class StorelessUnivariat
     }
 
     protected void checkClearValue(StorelessUnivariateStatistic statistic){
-    	assertTrue(Double.isNaN(statistic.getResult()));
+        assertTrue(Double.isNaN(statistic.getResult()));
     }
     
     public void testSerialization() throws Exception {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/ProductTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/ProductTest.java?rev=992191&r1=992190&r2=992191&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/ProductTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/ProductTest.java
Fri Sep  3 03:46:53 2010
@@ -86,8 +86,8 @@ public class ProductTest extends Storele
     }
     
     protected void checkClearValue(StorelessUnivariateStatistic statistic){
-    	assertEquals(1, statistic.getResult(), 0);
+        assertEquals(1, statistic.getResult(), 0);
     }
-    
+
 
 }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java?rev=992191&r1=992190&r2=992191&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java
Fri Sep  3 03:46:53 2010
@@ -82,7 +82,7 @@ public class SumLogTest extends Storeles
     }
     
     protected void checkClearValue(StorelessUnivariateStatistic statistic){
-    	assertEquals(0, statistic.getResult(), 0);
+        assertEquals(0, statistic.getResult(), 0);
     }
     
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java?rev=992191&r1=992190&r2=992191&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java
Fri Sep  3 03:46:53 2010
@@ -68,8 +68,8 @@ public class SumSqTest extends Storeless
     }
     
     protected void checkClearValue(StorelessUnivariateStatistic statistic){
-    	assertEquals(0, statistic.getResult(), 0);
+        assertEquals(0, statistic.getResult(), 0);
     }
-    
+
 
 }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumTest.java?rev=992191&r1=992190&r2=992191&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/summary/SumTest.java
Fri Sep  3 03:46:53 2010
@@ -76,8 +76,8 @@ public class SumTest extends StorelessUn
     }
     
     protected void checkClearValue(StorelessUnivariateStatistic statistic){
-    	assertEquals(0, statistic.getResult(), 0);
+        assertEquals(0, statistic.getResult(), 0);
     }
-    
+
 
 }



Mime
View raw message