breeze.util

Encoder

trait Encoder[T] extends AnyRef

For encoding counters as vectors and decoding vectors back to counters

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Encoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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: Any): 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. def fillSparseArrayMap[V](default: ⇒ V)(implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArrayMap[V]

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def mkArray[V](implicit arg0: ClassTag[V]): Array[V]

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

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

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

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

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

  24. def mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]

  25. def mkSparseVector(): SparseVector[Double]

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

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

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

  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def tabulateArray[V](f: (T) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]

    Fills an array of arbitrary type by tabulating the function

  32. def tabulateDenseVector(f: (T) ⇒ Double): DenseVector[Double]

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

  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped