Utils

object Utils

Various utility methods used by PMML4S.

class Object
trait Matchable
class Any
Utils.type

Value members

Concrete methods

def anyMissing(values: Array[Double]): Boolean
def getVal(s: String, dataType: DataType): Option[Any]
def inferDataType(a: Any): DataType
def isMissing(value: Any): Boolean
def isMissing(value: Double): Boolean
def isNumeric(value: Any): Boolean
def nonMissing(value: Any): Boolean
def nonMissing(value: Double): Boolean
def orNull(a: Any, b: => Any): Any
def plus[T](lhs: Seq[T], rhs: Seq[Double])(implicit num: Numeric[T]): Seq[Double]
def reduceByKey[K, V](collection: Iterable[(K, V)])(implicit num: Numeric[V]): Map[K, V]
def toBoolean(a: Any): Boolean
def toDouble(value: Any): Double
def toInt(a: Any): Int
def toLong(a: Any): Long
def toString(a: Any): String
def toVal(s: String, dataType: DataType): Any
def toVal(a: Any, dataType: DataType): Any