cc.factorie.util

DoubleArrayBuffer

class DoubleArrayBuffer extends ProtectedDoubleArrayBuffer with DenseDoubleSeq

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DoubleArrayBuffer
  2. DenseDoubleSeq
  3. DoubleSeq
  4. ProtectedDoubleArrayBuffer
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DoubleArrayBuffer(initialCapacity: Int)

  2. new DoubleArrayBuffer()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++=(is: Seq[Double]): Unit

  5. def ++=(is: Array[Double]): Unit

  6. def +=(i: Double): Unit

  7. def +=:(i: Double): Unit

  8. def =+(a: Array[Double], offset: Int, f: Double): Unit

    Increment given array (starting at offset index) with contents of this DoubleSeq, multiplied by factor f.

    Increment given array (starting at offset index) with contents of this DoubleSeq, multiplied by factor f.

    Definition Classes
    DenseDoubleSeqDoubleSeq
  9. final def =+(a: Array[Double], f: Double): Unit

    Definition Classes
    DoubleSeq
  10. final def =+(a: Array[Double], offset: Int): Unit

    Definition Classes
    DoubleSeq
  11. final def =+(a: Array[Double]): Unit

    Definition Classes
    DoubleSeq
  12. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  14. final def _append(elem: Double): DoubleArrayBuffer.this.type

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  15. def _appendAll(elts: TraversableOnce[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  16. def _appendAll(elts: Array[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  17. final def _apply(index: Int): Double

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  18. def _array: Array[Double]

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  19. final def _asArray: Array[Double]

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  20. def _asDoubleSeq: DoubleSeq

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  21. def _asSeq: IndexedSeq[Double]

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  22. def _capacityGrowthFactor: Double

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  23. def _clear(): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  24. def _considerShrinkingCapacity(): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  25. def _containsSorted(x: Double): Boolean

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  26. def _copyToArray(a: Array[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  27. final def _ensureCapacity(cap: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  28. def _fill(elt: Double): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  29. final def _increment(index: Int, incr: Double): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  30. def _indexForInsertSorted(i: Double): Int

    Return the index at which value i should be inserted in order to maintain sorted order.

    Return the index at which value i should be inserted in order to maintain sorted order. This assumes that the existing elements already already sorted. If value i is already present, return its index.

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  31. def _indexForInsertSortedLinear(i: Double): Int

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  32. def _indexOf(i: Double): Int

    Return the index containing the value i, or -1 if i is not found.

    Return the index containing the value i, or -1 if i is not found.

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  33. def _indexOfSorted(i: Double): Int

    Return the index containing the value i, or -1 if i is not found.

    Return the index containing the value i, or -1 if i is not found. Do so more efficiently by assuming that the contents are sorted in ascending order. Look by starting near the last index as which a search was successful.

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  34. def _initialCapacity: Int

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  35. def _insert(index: Int, elt: Double): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  36. def _insertAll(index: Int, seq: Traversable[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  37. def _insertAllSorted(seq: Traversable[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  38. def _insertSorted(elt: Double): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  39. def _insertSortedNoDuplicates(elt: Double): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  40. final def _length: Int

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  41. def _mapToArray[A](a: Array[A], f: (Double) ⇒ A): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  42. def _prepend(elt: Double): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  43. def _prependAll(elts: TraversableOnce[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  44. def _reduceToSize(newSize: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  45. def _remove(index: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  46. def _remove(index: Int, count: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  47. def _set(elts: Seq[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  48. def _set(elts: Array[Double]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  49. final def _setCapacity(cap: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  50. def _sizeHint(len: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  51. def _sum: Double

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  52. def _takeAsIntSeq(len: Int): DoubleSeq

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  53. def _toArray: Array[Double]

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  54. def _toSeq: IndexedSeq[Double]

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  55. def _trimCapacity(): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
  56. final def _update(index: Int, value: Double): Unit

    Attributes
    protected
    Definition Classes
    ProtectedDoubleArrayBuffer
    Annotations
    @inline()
  57. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Append a string representation of this DoubleSeq to the StringBuilder.

    Append a string representation of this DoubleSeq to the StringBuilder.

    Definition Classes
    DoubleSeq
  58. def apply(index: Int): Double

    Definition Classes
    DoubleArrayBufferDoubleSeq
  59. def asArray: Array[Double]

    Return the values as an Array[Double].

    Return the values as an Array[Double]. Not guaranteed to be a copy; in fact if it is possible to return a pointer to an internal array, it will simply return this.

    Definition Classes
    DoubleSeq
  60. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  61. def asSeq: Seq[Double]

    With uncopied contents

    With uncopied contents

    Definition Classes
    DoubleSeq
  62. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. def contains(d: Double): Boolean

    Definition Classes
    DenseDoubleSeqDoubleSeq
  64. def containsNaN: Boolean

    Definition Classes
    DenseDoubleSeqDoubleSeq
  65. def different(t: DoubleSeq, threshold: Double): Boolean

    Definition Classes
    DoubleSeq
  66. def entropy: Double

    Assumes that the values are already normalized to sum to 1.

    Assumes that the values are already normalized to sum to 1.

    Definition Classes
    DoubleSeq
  67. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  68. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  69. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  70. def foldLeft[B](z: B)(f: (B, Double) ⇒ B): B

    Definition Classes
    DoubleSeq
  71. def forall(f: (Double) ⇒ Boolean): Boolean

    Definition Classes
    DoubleSeq
  72. def forallElements(f: (Int, Double) ⇒ Boolean): Boolean

    Definition Classes
    DoubleSeq
  73. def foreach(f: (Double) ⇒ Unit): Unit

    Definition Classes
    DoubleSeq
  74. def foreachActiveElement(f: (Int, Double) ⇒ Unit): Unit

    Definition Classes
    DenseDoubleSeqDoubleSeq
  75. def foreachElement(f: (Int, Double) ⇒ Unit): Unit

    Definition Classes
    DoubleSeq
  76. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  77. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  78. def indexOf(d: Double): Int

    Definition Classes
    DenseDoubleSeqDoubleSeq
  79. def infinityNorm: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  80. def insert(index: Int, elt: Double): Unit

  81. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  82. def jsDivergence(p: DoubleSeq): Double

    Assumes that the values are already normalized to sum to 1.

    Assumes that the values are already normalized to sum to 1.

    Definition Classes
    DoubleSeq
  83. def klDivergence(p: DoubleSeq): Double

    Assumes that the values in both DoubleSeq are already normalized to sum to 1.

    Assumes that the values in both DoubleSeq are already normalized to sum to 1.

    Definition Classes
    DoubleSeq
  84. def l2Similarity(t: DoubleSeq): Double

    Definition Classes
    DoubleSeq
  85. def length: Int

    Definition Classes
    DoubleArrayBufferDoubleSeq
  86. def map(f: (Double) ⇒ Double): DoubleSeq

    Definition Classes
    DoubleSeq
  87. def max: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  88. def maxIndex: Int

    Definition Classes
    DenseDoubleSeqDoubleSeq
  89. def maxIndex2: (Int, Int)

    Definition Classes
    DenseDoubleSeqDoubleSeq
  90. def min: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  91. def mkString: String

    Definition Classes
    DoubleSeq
  92. def mkString(sep: String): String

    Definition Classes
    DoubleSeq
  93. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    DoubleSeq
  94. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  95. final def notify(): Unit

    Definition Classes
    AnyRef
  96. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  97. def oneNorm: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  98. def sampleIndex(normalizer: Double)(implicit r: Random): Int

    Definition Classes
    DenseDoubleSeqDoubleSeq
  99. def sampleIndex(implicit r: Random): Int

    Careful, for many subclasses this is inefficient because it calls the method "sum" to get the normalizer.

    Careful, for many subclasses this is inefficient because it calls the method "sum" to get the normalizer.

    Definition Classes
    DoubleSeq
  100. final def size: Int

    Definition Classes
    DoubleSeq
  101. def sum: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  102. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  103. def toArray: Array[Double]

    Return the values as an Array[Double].

    Return the values as an Array[Double]. Guaranteed to be a copy, not just a pointer to an internal array that would change with changes to the DoubleSeq

    Definition Classes
    DoubleArrayBufferDenseDoubleSeqDoubleSeq
  104. def toSeq: IndexedSeq[Double]

    With copied contents

    With copied contents

    Definition Classes
    DoubleArrayBufferDoubleSeq
  105. def toString(): String

    Definition Classes
    AnyRef → Any
  106. def top(n: Int): TopN[String]

    Return records for the n elements with the largest values.

    Return records for the n elements with the largest values.

    Definition Classes
    DoubleSeq
  107. final def twoNorm: Double

    Definition Classes
    DoubleSeq
  108. def twoNormSquared: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  109. def update(index: Int, value: Double): Unit

  110. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  111. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  112. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  113. def zero(): Unit

Inherited from DenseDoubleSeq

Inherited from DoubleSeq

Inherited from AnyRef

Inherited from Any

Ungrouped