You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sm...@apache.org on 2015/04/04 06:21:21 UTC
mahout git commit: MAHOUT-1672:Update OnlineSummarizer to use the new
T-Digest, this closes apache/MAHOUT#101
Repository: mahout
Updated Branches:
refs/heads/master 174891649 -> 94f5464b3
MAHOUT-1672:Update OnlineSummarizer to use the new T-Digest, this closes apache/MAHOUT#101
Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/94f5464b
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/94f5464b
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/94f5464b
Branch: refs/heads/master
Commit: 94f5464b3f42be3164061030d352ffcfc78be711
Parents: 1748916
Author: Suneel Marthi <su...@gmail.com>
Authored: Sat Apr 4 00:23:08 2015 -0400
Committer: Suneel Marthi <su...@gmail.com>
Committed: Sat Apr 4 00:23:08 2015 -0400
----------------------------------------------------------------------
math/pom.xml | 2 +-
.../main/java/org/apache/mahout/math/stats/OnlineSummarizer.java | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mahout/blob/94f5464b/math/pom.xml
----------------------------------------------------------------------
diff --git a/math/pom.xml b/math/pom.xml
index 71135df..ad5c582 100644
--- a/math/pom.xml
+++ b/math/pom.xml
@@ -175,7 +175,7 @@
<dependency>
<groupId>com.tdunning</groupId>
<artifactId>t-digest</artifactId>
- <version>2.0.2</version>
+ <version>3.0</version>
</dependency>
<dependency>
http://git-wip-us.apache.org/repos/asf/mahout/blob/94f5464b/math/src/main/java/org/apache/mahout/math/stats/OnlineSummarizer.java
----------------------------------------------------------------------
diff --git a/math/src/main/java/org/apache/mahout/math/stats/OnlineSummarizer.java b/math/src/main/java/org/apache/mahout/math/stats/OnlineSummarizer.java
index b3eb8c2..8135fda 100644
--- a/math/src/main/java/org/apache/mahout/math/stats/OnlineSummarizer.java
+++ b/math/src/main/java/org/apache/mahout/math/stats/OnlineSummarizer.java
@@ -18,7 +18,6 @@
package org.apache.mahout.math.stats;
import com.tdunning.math.stats.TDigest;
-import com.tdunning.math.stats.TreeDigest;
/**
* Computes on-line estimates of mean, variance and all five quartiles (notably including the
@@ -41,7 +40,7 @@ import com.tdunning.math.stats.TreeDigest;
*/
public class OnlineSummarizer {
- private TDigest quantiles = new TreeDigest(100);
+ private TDigest quantiles = TDigest.createTreeDigest(100.0);
// mean and variance estimates
private double mean;