Class/Object

org.locationtech.geomesa.utils.stats

BinnedArray

Related Docs: object BinnedArray | package stats

Permalink

abstract class BinnedArray[T] extends AnyRef

Puts inputs into sorted bins and stores count of each bin

T

type of input value

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

Instance Constructors

  1. new BinnedArray(length: Int, bounds: (T, T))

    Permalink

    length

    number of bins

    bounds

    upper and lower bounds for the input values

Abstract Value Members

  1. abstract def bounds(index: Int): (T, T)

    Permalink

    Gets the min and max values that will go into a bin

    Gets the min and max values that will go into a bin

    index

    index into the array

    returns

    bounds for the bin

  2. abstract def directIndex(value: Long): Int

    Permalink

    Maps a value that has already been transformed into a number to a bin index.

    Maps a value that has already been transformed into a number to a bin index.

    value

    value

    returns

    bin index, or -1 if value is out of bounds

  3. abstract def indexOf(value: T): Int

    Permalink

    Maps a value to a bin index.

    Maps a value to a bin index.

    value

    value

    returns

    bin index, or -1 if value is out of bounds

  4. abstract def isBelow(value: T): Boolean

    Permalink

    Indicates if the value is below the range of this array

    Indicates if the value is below the range of this array

    value

    value

    returns

    true if below, false otherwise (implies above if indexOf == -1)

  5. abstract def medianValue(index: Int): T

    Permalink

    Gets a value corresponding to the midpoint of a bin.

    Gets a value corresponding to the midpoint of a bin.

    index

    index into the array

    returns

    representative value for the bin

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(value: T, count: Long = 1): Unit

    Permalink

    Increment the count for the bin corresponding to this value

    Increment the count for the bin corresponding to this value

    value

    value

    count

    how much to increment

  5. def apply(index: Int): Long

    Permalink

    Gets the count of entries in the given bin

    Gets the count of entries in the given bin

    index

    bin index

    returns

    count

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val bounds: (T, T)

    Permalink

    upper and lower bounds for the input values

  8. def clear(): Unit

    Permalink

    Clears the counts

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. val length: Int

    Permalink

    number of bins

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped