t

geotrellis.raster.mapalgebra.focal

MedianModeCalculation

trait MedianModeCalculation extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MedianModeCalculation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def addValue(v: Int): Unit

    Adds a value to the internal array, grouping values together but not ordering them.

    Adds a value to the internal array, grouping values together but not ordering them. If you call this after calling addValueOrdered, you'll probably break the ordering, so use one or the other. This one is faster, according to timing data.

  2. def addValueOrdered(v: Int): Unit

    Adds a value to the internal array, ordering the values.

    Adds a value to the internal array, ordering the values. If you call addValue after calling this you'll probably break the ordering, so use one or the other. This one is slower, according to timing data.

  3. val arr: Array[Int]
  4. val currArrMax: Int
  5. val d2: Int
  6. def initArray(extent: Int): Unit
  7. def median: Int

    Calculates the median.

    Calculates the median. If you use this, make sure you've been only calling addValueOrdered

  8. def mode: Int

    Calculates the mode.

    Calculates the mode. Works with addValue or addValueOrdered

  9. val modeValue: Int
  10. def removeValue(v: Int): Unit
  11. def reset(): Unit