Packages

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
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(binning: Binning[T])

    binning

    binning logic

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(value: T, count: Long = 1L): Unit

    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

    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
    Definition Classes
    Any
  7. def bounds(index: Int): (T, T)

    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

  8. def bounds: (T, T)
  9. def clear(): Unit

    Clears the counts

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  11. def directIndex(value: Long): Int

    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

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def indexOf(value: T): Int

    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

  17. def isBelow(value: T): Boolean

    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)

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def length: Int
  20. def medianValue(index: Int): T

    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

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped