commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [math] No tabs.
Date Tue, 31 May 2016 13:35:06 GMT
Repository: commons-math
Updated Branches:
  refs/heads/feature-MATH-1370 0cc22651b -> 52f219398


No tabs.


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/52f21939
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/52f21939
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/52f21939

Branch: refs/heads/feature-MATH-1370
Commit: 52f219398cb83580e9d9ed955e4efc4477cb826a
Parents: 0cc2265
Author: Gilles <gilles@harfang.homelinux.org>
Authored: Tue May 31 15:24:25 2016 +0200
Committer: Gilles <gilles@harfang.homelinux.org>
Committed: Tue May 31 15:24:25 2016 +0200

----------------------------------------------------------------------
 .../commons/math4/distribution/EnumeratedDistribution.java       | 4 ++--
 .../commons/math4/distribution/EnumeratedDistributionTest.java   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/52f21939/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
b/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
index 3fa6279..415d50e 100644
--- a/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
+++ b/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
@@ -145,8 +145,8 @@ public class EnumeratedDistribution<T> implements Serializable {
      * @return the value of the probability mass function at {@code x}
      */
     double probability(final T x) {
-	final Double p = massPoints.get(x);
-	return p == null ? 0 : p.doubleValue();
+        final Double p = massPoints.get(x);
+        return p == null ? 0 : p.doubleValue();
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/commons-math/blob/52f21939/src/test/java/org/apache/commons/math4/distribution/EnumeratedDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math4/distribution/EnumeratedDistributionTest.java
b/src/test/java/org/apache/commons/math4/distribution/EnumeratedDistributionTest.java
index c1756b0..cb83da4 100644
--- a/src/test/java/org/apache/commons/math4/distribution/EnumeratedDistributionTest.java
+++ b/src/test/java/org/apache/commons/math4/distribution/EnumeratedDistributionTest.java
@@ -47,7 +47,7 @@ public class EnumeratedDistributionTest {
 
     @Test
     public void testGetPmf() {
-	final String s = "bike";
+        final String s = "bike";
         final List<Pair<String, Double>> pmf = Arrays.asList(
             new Pair<String, Double>(s, 0.1),
             new Pair<String, Double>(s, 0.3),


Mime
View raw message