Trait/Object

breeze.util

Encoder

Related Docs: object Encoder | package util

Permalink

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. All

Abstract Value Members

  1. abstract val index: Index[T]

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def decode[V](array: SparseArray[V]): Map[T, V]

    Permalink
  7. def decode[V](array: Array[V]): Map[T, V]

    Permalink

    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]

    Permalink

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

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

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def fillArray[V](default: ⇒ V)(implicit arg0: ClassTag[V]): Array[V]

    Permalink

    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]

    Permalink
  17. def finalize(): Unit

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

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

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    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]

    Permalink
  25. def mkSparseVector(): SparseVector[Double]

    Permalink

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

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

    Permalink

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

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

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

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

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

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

    Permalink

    Fills an array of arbitrary type by tabulating the function

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

    Permalink

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

  33. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped