geotrellis.statistics

Histogram

trait Histogram extends AnyRef

Data object representing a histogram of values.

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

Abstract Value Members

  1. abstract def copy: Histogram

    Return a copy of this histogram.

  2. abstract def countItem(item: 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'.

  3. abstract def getItemCount(item: Int): Int

    Return the number of occurances for 'item'.

  4. abstract def getMaxValue: Int

    Return the largest item seen.

  5. abstract def getMinValue: Int

    Return the smallest item seen.

  6. abstract def getTotalCount: Int

    Return the total number of occurances for all items.

  7. abstract def getValues: Array[Int]

  8. abstract def setItem(item: Int, count: Int): Unit

  9. abstract def uncountItem(item: Int): Unit

    Forget all occurances of 'item'.

Concrete 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 eq(arg0: AnyRef): Boolean

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

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

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

  12. def generateStatistics(): Statistics

  13. final def getClass(): java.lang.Class[_]

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

    Return 'num' evenly spaced Doubles from 0.

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

  15. def getMinMaxValues: (Int, Int)

    Return the smallest and largest items seen as a tuple.

  16. def getQuantileBreaks(num: Int): Array[Int]

  17. def hashCode(): Int

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

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

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

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

  21. final def notify(): Unit

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

    Definition Classes
    AnyRef
  23. 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)

  24. 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.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toJSON: String

  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def update(other: Histogram): Unit

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any