trait Encoder[T] extends AnyRef

For encoding counters as vectors and decoding vectors back to counters

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

Abstract Value Members

  1. abstract val index: Index[T]

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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. def decode[V](array: SparseArray[V]): Map[T, V]
  7. def decode[V](array: Array[V]): Map[T, V]

    Converts an array into a Map from T's to whatever was in the array.

  8. def decode(v: Vector[Double], keepZeros: Boolean = false): Counter[T, Double]

    Decodes a vector back to a Counter[T,Double]

  9. def encode(c: Tensor[(T, T), Double]): DenseMatrix[Double]

    Encodes a Tensor[(T,T),Double] as a DenseMatrix[Double].

    Encodes a Tensor[(T,T),Double] as a DenseMatrix[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true

  10. def encode(c: Tensor[T, Double], ignoreOutOfIndex: Boolean = false): Vector[Double]

    Encodes a DoubleCounter as a Vector[Double].

    Encodes a DoubleCounter as a Vector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true

  11. def encodeDense(c: Tensor[T, Double], ignoreOutOfIndex: Boolean = false): DenseVector[Double]

    Encodes a DoubleCounter as a Vector[Double].

    Encodes a DoubleCounter as a Vector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true

  12. def encodeSparse(c: Tensor[T, Double], ignoreOutOfIndex: Boolean = false): SparseVector[Double]

    Encodes a DoubleCounter as a SparseVector[Double].

    Encodes a DoubleCounter as a SparseVector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def fillArray[V](default: => V)(implicit arg0: ClassTag[V]): Array[V]

    Fills an array of arbitrary type with the value provided and with the index's size.

  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def mkArray[V](implicit arg0: ClassTag[V]): Array[V]

    Creates an array of arbitrary type with the index's size.

  20. final def mkDenseVector(default: Double = 0.0): DenseVector[Double]

    Creates a DenseVector[Double] with the index's size

  21. final def mkMatrix(): DenseMatrix[Double]

    makes a matrix of some sort with the index's size as rows and cols

  22. def mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]
  23. def mkSparseVector(): SparseVector[Double]

    Creates a SparseVector[Double] with the index's size

  24. final def mkVector(): Vector[Double]

    Creates a Vector[Double] of some sort with the index's size.

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def tabulateArray[V](f: (T) => V)(implicit arg0: ClassTag[V]): Array[V]

    Fills an array of arbitrary type by tabulating the function

  30. def tabulateDenseVector(f: (T) => Double): DenseVector[Double]

    Fills a DenseVector[Double] with each index given by the result of the function.

  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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