trait Encoder[T] extends AnyRef
For encoding counters as vectors and decoding vectors back to counters
- Alphabetic
- By Inheritance
- Encoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
- def decode[V](array: SparseArray[V]): Map[T, V]
-
def
decode[V](array: Array[V]): Map[T, V]
Converts an array into a Map from T's to whatever was in the array.
-
def
decode(v: Vector[Double], keepZeros: Boolean = false): Counter[T, Double]
Decodes a vector back to a Counter[T,Double]
-
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
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mkArray[V](implicit arg0: ClassTag[V]): Array[V]
Creates an array of arbitrary type with the index's size.
-
final
def
mkDenseVector(default: Double = 0.0): DenseVector[Double]
Creates a DenseVector[Double] with the index's size
-
final
def
mkMatrix(): DenseMatrix[Double]
makes a matrix of some sort with the index's size as rows and cols
- def mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]
-
def
mkSparseVector(): SparseVector[Double]
Creates a SparseVector[Double] with the index's size
-
final
def
mkVector(): Vector[Double]
Creates a Vector[Double] of some sort with the index's size.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tabulateArray[V](f: (T) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
Fills an array of arbitrary type by tabulating the function
-
def
tabulateDenseVector(f: (T) ⇒ Double): DenseVector[Double]
Fills a DenseVector[Double] with each index given by the result of the function.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )