trait
DoubleSeq extends AnyRef
Abstract Value Members
-
abstract
def
=+(a: Array[Double], offset: Int, f: Double): Unit
-
abstract
def
apply(i: Int): Double
-
abstract
def
contains(d: Double): Boolean
-
abstract
def
containsNaN: Boolean
-
abstract
def
foreachActiveElement(f: (Int, Double) ⇒ Unit): Unit
-
abstract
def
indexOf(d: Double): Int
-
abstract
def
infinityNorm: Double
-
abstract
def
length: Int
-
abstract
def
max: Double
-
abstract
def
maxIndex: Int
-
abstract
def
maxIndex2: (Int, Int)
-
abstract
def
min: Double
-
abstract
def
oneNorm: Double
-
abstract
def
sampleIndex(normalizer: Double)(implicit r: Random): Int
-
abstract
def
sum: Double
-
abstract
def
toArray: Array[Double]
-
abstract
def
twoNormSquared: Double
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
=+(a: Array[Double], f: Double): Unit
-
final
def
=+(a: Array[Double], offset: Int): Unit
-
final
def
=+(a: Array[Double]): Unit
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
-
def
asArray: Array[Double]
-
final
def
asInstanceOf[T0]: T0
-
def
asSeq: Seq[Double]
-
def
clone(): AnyRef
-
def
different(t: DoubleSeq, threshold: Double): Boolean
-
def
entropy: Double
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
foldLeft[B](z: B)(f: (B, Double) ⇒ B): B
-
def
forall(f: (Double) ⇒ Boolean): Boolean
-
def
forallElements(f: (Int, Double) ⇒ Boolean): Boolean
-
def
foreach(f: (Double) ⇒ Unit): Unit
-
def
foreachElement(f: (Int, Double) ⇒ Unit): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
jsDivergence(p: DoubleSeq): Double
-
def
klDivergence(p: DoubleSeq): Double
-
def
l2Similarity(t: DoubleSeq): Double
-
def
map(f: (Double) ⇒ Double): DoubleSeq
-
def
mkString: String
-
def
mkString(sep: String): String
-
def
mkString(start: String, sep: String, end: String): String
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
sampleIndex(implicit r: Random): Int
-
final
def
size: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toSeq: Seq[Double]
-
def
toString(): String
-
def
top(n: Int): TopN[String]
-
final
def
twoNorm: Double
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
We are so desperate for efficient @specialized Seq[Double], that we created our own. This could inherit from IndexedSeq[Double] but we would pass on significant risk of inefficiencies hidden to the user. cc.factorie.la.Tensor inherits from this; the primary functionalities it adds are Tensor rank, more explicit handling of activeElements, and ability to copy itself.