org.apache.nutch.util

## Class Histogram<E>

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

-     public class Histogram<E>
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Histogram()`

  - ### Method Summary

    All Methods Instance Methods Concrete 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)`
    `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)`

    - ### 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 java.util.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 java.util.List<E> sortInverseByValue()

    - #### sortByValue

          public java.util.List<E> sortByValue()

    - #### toString

          public java.lang.String toString(java.util.List<E> items)

Copyright © 2019 The Apache Software Foundation