Packages

object Converter

The Converter object converts string number vectors to regular numeric vectors.

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

Value Members

  1. def mapToInt(s: VectoS): (VectoI, BiMap[StrNum, Int])

    Convert a VectorS into a VectorI by mapping each distinct value in VectorS into a distinct numeric integer value, returning the new vector and the bidirectional mapping.

    Convert a VectorS into a VectorI by mapping each distinct value in VectorS into a distinct numeric integer value, returning the new vector and the bidirectional mapping. Use the 'from' method in BiMap to recover the original string. e.g., VectorS ("A", "B", "C", "A", "D") will be mapped to VectorI (0, 1, 2, 0, 3)

    s

    the vector of string numbers to convert