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
Visibility
1. Public
2. All

Concrete 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. final def ==(arg0: AnyRef): Boolean

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

Definition Classes
Any
6. final def asInstanceOf[T0]: T0

Definition Classes
Any
7. def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )

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

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

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

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

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

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

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

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

15. final def eq(arg0: AnyRef): Boolean

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

Definition Classes
AnyRef → Any
17. 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.

19. def finalize(): Unit

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

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

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

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

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

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

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

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

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

27. def mkSparseVector(): SparseVector[Double]

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

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

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

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

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

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

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

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

Fills an array of arbitrary type by tabulating the function

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

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

35. def toString(): String

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

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

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

Definition Classes
AnyRef
Annotations
@throws( ... )