Class NumericParser

Object
org.apache.spark.mllib.util.NumericParser

public class NumericParser extends Object
Simple parser for a numeric structure consisting of three types:

- number: a double in Java's floating number format - array: an array of numbers stored as [v0,v1,...,vn] - tuple: a list of numbers, arrays, or tuples stored as (...)

  • Constructor Details

    • NumericParser

      public NumericParser()
  • Method Details

    • parse

      public static Object parse(String s)
      Parses a string into a Double, an Array[Double], or a Seq[Any].