Packages

abstract class Binning[T] extends AnyRef

Logic for converting inputs into bins

T

type of input value

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Binning
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    length

    number of bins

    bounds

    upper and lower bounds for the input values

Abstract Value Members

  1. abstract 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

  2. abstract 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

  3. abstract 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

  4. abstract 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)

  5. abstract 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

Concrete 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val bounds: (T, T)
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val length: Int
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. 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