geotrellis.statistics

ArrayHistogram

class ArrayHistogram extends Histogram

Data object representing a histogram that uses an array for internal storage.

Linear Supertypes
Histogram, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ArrayHistogram
  2. Histogram
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayHistogram(counts: Array[Int], total: Int)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def copy: ArrayHistogram

    Return a copy of this histogram.

    Return a copy of this histogram.

    Definition Classes
    ArrayHistogramHistogram
  9. def countItem(i: Int, count: Int = 1): Unit

    Note the occurance of 'item.

    Note the occurance of 'item.

    The optional parameter 'count' allows histograms to be built more efficiently. Negative counts can be used to remove a particular number of occurances of 'item'.

    Definition Classes
    ArrayHistogramHistogram
  10. val counts: Array[Int]

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def foreach(f: (Int, Int) ⇒ Unit): Unit

    Definition Classes
    Histogram
  15. def generateStatistics(): Statistics

    Definition Classes
    Histogram
  16. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  17. def getEvenQuantiles(num: Int): Array[Double]

    Return 'num' evenly spaced Doubles from 0.

    Return 'num' evenly spaced Doubles from 0.0 to 1.0.

    Definition Classes
    Histogram
  18. def getItemCount(i: Int): Int

    Return the number of occurances for 'item'.

    Return the number of occurances for 'item'.

    Definition Classes
    ArrayHistogramHistogram
  19. def getMaxValue: Int

    Return the largest item seen.

    Return the largest item seen.

    Definition Classes
    ArrayHistogramHistogram
  20. def getMinMaxValues: (Int, Int)

    Return the smallest and largest items seen as a tuple.

    Return the smallest and largest items seen as a tuple.

    Definition Classes
    Histogram
  21. def getMinValue: Int

    Return the smallest item seen.

    Return the smallest item seen.

    Definition Classes
    ArrayHistogramHistogram
  22. def getQuantileBreaks(num: Int): Array[Int]

    Definition Classes
    Histogram
  23. def getTotalCount: Int

    Return the total number of occurances for all items.

    Return the total number of occurances for all items.

    Definition Classes
    ArrayHistogramHistogram
  24. def getValues: Array[Int]

    Definition Classes
    ArrayHistogramHistogram
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def normalizeExtremeValues(num: Int, cutoff: Int): Histogram

    This is a heuristic used by getQuantileBreaks, which mutates the histogram.

    This is a heuristic used by getQuantileBreaks, which mutates the histogram.

    Definition Classes
    Histogram
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def setItem(i: Int, count: Int): Unit

    Definition Classes
    ArrayHistogramHistogram
  32. def size: Int

  33. def splitBreakIndices(b: Int, q: Int): Array[Int]

    The basic idea here is to try to "evenly" split 'b' values across 'q' slots.

    The basic idea here is to try to "evenly" split 'b' values across 'q' slots. The goal is to drop or duplicate values as evenly as possible. Here are some examples:

    splitBreakIndices(1, 1) -> Array(0) splitBreakIndices(3, 5) -> Array(1,2,4) splitBreakIndices(4, 5) -> Array(0,1,3,4) splitBreakIndices(5, 5) -> Array(0,1,2,3,4) splitBreakIndices(7, 5) -> Array(0,1,1,2,3,3,4) splitBreakIndices(10,5) -> Array(0,0,1,1,2,2,3,3,4,4)

    Definition Classes
    Histogram
  34. def splitBreaks(breaks: Array[Int], q: Int): Array[Int]

    Take an existing array of class breaks (values that define the maximum for a particular class) and "stretch" them over a larger range.

    Take an existing array of class breaks (values that define the maximum for a particular class) and "stretch" them over a larger range. The idea is that a user might want 6 classes, but only 4 could be created. In these cases we will streth the 4 breaks into 6 (with some breaks being unused) to better map onto a users' preferred colors.

    Definition Classes
    Histogram
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toJSON: String

    Definition Classes
    Histogram
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. var total: Int

  39. def uncountItem(i: Int): Unit

    Forget all occurances of 'item'.

    Forget all occurances of 'item'.

    Definition Classes
    ArrayHistogramHistogram
  40. def update(other: Histogram): Unit

    Definition Classes
    Histogram
  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Histogram

Inherited from AnyRef

Inherited from Any