Packages

object Converter

The Converter object converts string number vectors to integer 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: VectorS): (VectorI, Map[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 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 mapping. 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