org.apache.nutch.util

## Class Histogram<E>

- java.lang.Object
- - org.apache.nutch.util.Histogram<E>

-     public class Histogram<E>
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Histogram()`

  - ### Method Summary

    Methods
    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)`
    `Set<E>` | `getKeys()`
    `float` | `getValue(E x)`
    `Histogram<E>` | `normalize()`
    `List<E>` | `sortByValue()`
    `List<E>` | `sortInverseByValue()`
    `String` | `toString(List<E> items)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Histogram

          public Histogram()

  - ### Method Detail

    - #### add

          public void add(E x)

    - #### add

          public void add(E x,
                 float value)

    - #### getKeys

          public Set<E> getKeys()

    - #### getValue

          public float getValue(E x)

    - #### getCount

          public int getCount(E x)

    - #### add

          public void add(Histogram<E> other)

    - #### normalize

          public Histogram<E> normalize()

    - #### sortInverseByValue

          public List<E> sortInverseByValue()

    - #### sortByValue

          public List<E> sortByValue()

    - #### toString

          public String toString(List<E> items)

Copyright © 2015 The Apache Software Foundation