geotrellis.statistics

CompressedArrayHistogram

class CompressedArrayHistogram extends ArrayHistogram

Data object representing a histogram using an array for internal storage, which requires an initial minimum and maximum val and a specified number of 'breaks' which are used to group values together into ranges.

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

Instance Constructors

  1. new CompressedArrayHistogram(counts: Array[Int], total: Int, vmin: Int, vmax: 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. final def compress(i: Int): Int

  9. def copy: CompressedArrayHistogram

    Return a copy of this histogram.

    Return a copy of this histogram.

    Definition Classes
    CompressedArrayHistogramArrayHistogramHistogram
  10. 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
    CompressedArrayHistogramArrayHistogramHistogram
  11. final def decompress(i: Int): Int

  12. val divisor: Int

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

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

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

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

    Definition Classes
    Histogram
  17. def generateStatistics(): Statistics

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

    Definition Classes
    AnyRef → Any
  19. 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
  20. def getItemCount(i: Int): Int

    Return the number of occurances for 'item'.

    Return the number of occurances for 'item'.

    Definition Classes
    CompressedArrayHistogramArrayHistogramHistogram
  21. def getMaxValue: Int

    Return the largest item seen.

    Return the largest item seen.

    Definition Classes
    CompressedArrayHistogramArrayHistogramHistogram
  22. 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
  23. def getMinValue: Int

    Return the smallest item seen.

    Return the smallest item seen.

    Definition Classes
    CompressedArrayHistogramArrayHistogramHistogram
  24. def getQuantileBreaks(num: Int): Array[Int]

    Definition Classes
    Histogram
  25. def getTotalCount: Int

    Return the total number of occurances for all items.

    Return the total number of occurances for all items.

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

  27. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  30. 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
  31. final def notify(): Unit

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

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

  34. def size: Int

    Definition Classes
    ArrayHistogram
  35. 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
  36. 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
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toJSON: String

    Definition Classes
    Histogram
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def uncountItem(i: Int): Unit

    Forget all occurances of 'item'.

    Forget all occurances of 'item'.

    Definition Classes
    CompressedArrayHistogramArrayHistogramHistogram
  41. def update(other: Histogram): Unit

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ArrayHistogram

Inherited from Histogram

Inherited from AnyRef

Inherited from Any