org.apache.accumulo.test.continuous
Class Histogram<T>
java.lang.Object
org.apache.accumulo.test.continuous.Histogram<T>
- All Implemented Interfaces:
- Serializable
public class Histogram<T>
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Field Summary |
protected HashMap<T,org.apache.accumulo.test.continuous.HistData<T>> |
counts
|
protected long |
sum
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sum
protected long sum
counts
protected HashMap<T,org.apache.accumulo.test.continuous.HistData<T>> counts
Histogram
public Histogram()
addPoint
public void addPoint(T x)
addPoint
public void addPoint(T x,
long y)
getCount
public long getCount(T x)
getPercentage
public double getPercentage(T x)
getSum
public long getSum()
getKeysInCountSortedOrder
public List<T> getKeysInCountSortedOrder()
print
public void print()
save
public void save(String file)
throws IOException
- Throws:
IOException
getKeys
public Set<T> getKeys()
clear
public void clear()
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.