org.apache.accumulo.test.continuous
public class Histogram<T> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<T,org.apache.accumulo.test.continuous.HistData<T>> |
counts |
protected long |
sum |
| Constructor and Description |
|---|
Histogram() |
public void addPoint(T x)
public void addPoint(T x, long y)
public long getCount(T x)
public double getPercentage(T x)
public long getSum()
public void print(StringBuilder out)
public void save(String file) throws IOException
IOExceptionpublic void clear()
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.