final
class
TraversableExtras[A] extends AnyVal
Instance Constructors
-
new
TraversableExtras(t: Traversable[A])
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
filterByClass[C](c: Class[C]): Traversable[C]
-
def
filterByType[T <: AnyRef](implicit m: ClassTag[T]): Traversable[T]
-
def
getClass(): Class[_ <: AnyVal]
-
def
indexOfMaxByDouble(extractor: (A) ⇒ Double): Int
-
def
indexSafe(i: Int): Option[A]
-
final
def
isInstanceOf[T0]: Boolean
-
def
max2ByDouble(extractor: (A) ⇒ Double): (A, A)
-
def
maxByDouble(extractor: (A) ⇒ Double): A
-
def
maxByInt(extractor: (A) ⇒ Int): A
-
def
minByDouble(extractor: (A) ⇒ Double): A
-
def
minByInt(extractor: (A) ⇒ Int): A
-
def
multiplyDoubles(extractor: (A) ⇒ Double): Double
-
def
multiplyInts(extractor: (A) ⇒ Int): Int
-
def
sampleExpProportionally(extractor: (A) ⇒ Double)(implicit random: Random): A
-
def
sampleProportionally(extractor: (A) ⇒ Double)(implicit random: Random): A
-
def
sampleUniformly(implicit random: Random): A
-
def
shuffle(implicit random: Random): Seq[A]
-
def
sortForward(extractor: (A) ⇒ Double): Seq[A]
-
def
sortReverse(extractor: (A) ⇒ Double): Seq[A]
-
def
split(ratio: Double): (Seq[A], Seq[A])
-
-
def
subseq(prob: Double)(implicit random: Random): Traversable[A]
-
def
sumDoubles(extractor: (A) ⇒ Double): Double
-
def
sumInts(extractor: (A) ⇒ Int): Int
-
-
def
toString(): String
Inherited from AnyVal
Inherited from NotNull
Inherited from Any
New functionality on Traversable instances, available by implicit conversion in the cc.factorie package object in cc/factorie/package.scala.