Packages

object MM_Relation extends Serializable

The MM_Relation companion object provides additional functions for the MM_Relation class.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MM_Relation
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(fileName: String, name: String): MM_Relation

    Read the relation with the given 'name' into memory from a JSON file.

    Read the relation with the given 'name' into memory from a JSON file.

    fileName

    the file name of the JSON file

    name

    the name of the relation to load

  5. def apply(fileName: String, name: String, colName: Seq[String], key: Int, domain: String): MM_Relation

    Read the relation with the given 'name' into memory loading its columns with data from the CSV file named 'fileName'.

    Read the relation with the given 'name' into memory loading its columns with data from the CSV file named 'fileName'. This version assumes defaults for 'eSep' and 'skip' of ("," and 0).

    fileName

    the file name of the data file

    name

    the name of the relation

    colName

    the names of columns

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

  6. def apply(fileName: String, name: String, key: Int, domain: String, eSep: String): MM_Relation

    Read the relation with the given 'name' into memory loading its columns with data from the CSV file named 'fileName'.

    Read the relation with the given 'name' into memory loading its columns with data from the CSV file named 'fileName'. In this version, the column names are read from the first line of the file.

    fileName

    the file name of the data file

    name

    the name of the relation

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

    eSep

    the element separation string/regex (e.g., "," ";" " +")

  7. def apply(fileName: String, name: String, colName: Seq[String], key: Int, domain: String, skip: Int, eSep: String): MM_Relation

    Read the relation with the given 'name' into memory loading its columns with data from the CSV file named 'fileName'.

    Read the relation with the given 'name' into memory loading its columns with data from the CSV file named 'fileName'.

    fileName

    the file name of the data file

    name

    the name of the relation

    colName

    the names of columns

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

    skip

    the number of lines in the CSV file to skip (e.g., header line(s))

    eSep

    the element separation string/regex (e.g., "," ";" " +")

  8. def apply(name: String): MM_Relation

    Read the relation with the given 'name' into memory using serialization.

    Read the relation with the given 'name' into memory using serialization.

    name

    the name of the relation to load

  9. def apply(name: String, colName: Seq[String], row: Seq[Row], key: Int): MM_Relation

    Create a relation from a sequence of row/tuples.

    Create a relation from a sequence of row/tuples. These rows must be converted to columns.

    name

    the name of the relation

    colName

    the names of columns

    row

    the sequence of rows to be converted to columns for the columnar relation

    key

    the column number for the primary key (< 0 => no primary key)

  10. def apply(name: String, colName: Seq[String], row: Seq[Row], key: Int, domain: String): MM_Relation

    Create a relation from a sequence of row/tuples.

    Create a relation from a sequence of row/tuples. These rows must be converted to columns.

    name

    the name of the relation

    colName

    the names of columns

    row

    the sequence of rows to be converted to columns for the columnar relation

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def corr(r: MM_Relation, i: Int = 0, j: Int = 1): Double

    Compute the correlation of column 'i' and 'j' within columnar relation 'r'.

    Compute the correlation of column 'i' and 'j' within columnar relation 'r'.

    r

    the given relation

    i

    the first column vector

    j

    the second column vector

  14. def count(r: MM_Relation): Seq[Any]

    Return the count (number of elements) of each of the columns of columnar relation 'r'.

    Return the count (number of elements) of each of the columns of columnar relation 'r'.

    r

    the given relation

  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def fromMatriD(xy: MatriD, name: String, colName: Seq[String], key: Int = 1, domain: String = null): MM_Relation

    Create a relation from the 'xy' matrix of doubles.

    Create a relation from the 'xy' matrix of doubles.

    xy

    the matrix containing the data

    name

    the name of the relation

    colName

    the names of columns

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

  19. def fromMatriD_(x: MatriD, y: Vec, name: String, colName: Seq[String], key: Int = 1, domain: String = null): MM_Relation

    Create a relation from the 'x' matrix of doubles and 'y' vector of doubles or integers.

    Create a relation from the 'x' matrix of doubles and 'y' vector of doubles or integers.

    x

    the matrix containing the data

    y

    the vector containing the data

    name

    the name of the relation

    colName

    the names of columns

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

  20. def fromMatriI(xy: MatriI, name: String, colName: Seq[String], key: Int = 1, domain: String = null): MM_Relation

    Create a relation from the 'xy' matrix of integers.

    Create a relation from the 'xy' matrix of integers.

    xy

    the matrix containing the data

    name

    the name of the relation

    colName

    the names of columns

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

  21. def fromMatriII(x: MatriI, y: VectorI, name: String, colName: Seq[String], key: Int = 1, domain: String = null): MM_Relation

    Create a relation from the 'xy' matrix of integers and 'y' vector of integers.

    Create a relation from the 'xy' matrix of integers and 'y' vector of integers.

    x

    the matrix containing the data

    y

    the vector containing the data

    name

    the name of the relation

    colName

    the names of columns

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = StrNum, Double)

  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def max(r: MM_Relation): Seq[Any]

    Return the maximum of each of the columns of columnar relation 'r'.

    Return the maximum of each of the columns of columnar relation 'r'.

    r

    the given relation

  26. def mean(r: MM_Relation): Seq[Any]

    Compute the mean of each of the columns of columnar relation 'r'.

    Compute the mean of each of the columns of columnar relation 'r'.

    r

    the given relation

  27. def min(r: MM_Relation): Seq[Any]

    Return the minimum of each of the columns of columnar relation 'r'.

    Return the minimum of each of the columns of columnar relation 'r'.

    r

    the given relation

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. def sum(r: MM_Relation): Seq[Any]

    Compute the mean of each of the columns of columnar relation 'r'.

    Compute the mean of each of the columns of columnar relation 'r'.

    r

    the given relation

  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. def variance(r: MM_Relation): Seq[Any]

    Compute the variance of each of the columns of columnar relation 'r'.

    Compute the variance of each of the columns of columnar relation 'r'.

    r

    the given relation

  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def Ɛ(r: MM_Relation): Seq[Any]

    Compute the mean of each of the columns of columnar relation 'r'.

    Compute the mean of each of the columns of columnar relation 'r'.

    r

    the given relation

  39. def Ʋ(r: MM_Relation): Seq[Any]

    Compute the variance of each of the columns of columnar relation 'r'.

    Compute the variance of each of the columns of columnar relation 'r'.

    r

    the given relation

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped