class BinnedArray[T] extends AnyRef
Puts inputs into sorted bins and stores count of each bin
- T
type of input value
- Alphabetic
- By Inheritance
- BinnedArray
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
- def bounds: (T, T)
-
def
clear(): Unit
Clears the counts
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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
-
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)
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length: Int
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated