public class Histogram<E>
extends java.lang.Object
Constructor and Description |
---|
Histogram() |
Modifier and Type | Method and Description |
---|---|
void |
add(E x) |
void |
add(E x,
float value) |
void |
add(Histogram<E> other) |
int |
getCount(E x) |
java.util.Set<E> |
getKeys() |
float |
getValue(E x) |
Histogram<E> |
normalize() |
java.util.List<E> |
sortByValue() |
java.util.List<E> |
sortInverseByValue() |
java.lang.String |
toString(java.util.List<E> items) |
public void add(E x)
public void add(E x, float value)
public java.util.Set<E> getKeys()
public float getValue(E x)
public int getCount(E x)
public java.util.List<E> sortInverseByValue()
public java.util.List<E> sortByValue()
public java.lang.String toString(java.util.List<E> items)
Copyright © 2019 The Apache Software Foundation