Trait

smile.io

Operators

Related Doc: package io

Permalink

trait Operators extends AnyRef

High level I/O operators.

Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Operators
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to any2stringadd[Operators] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Operators, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to ArrowAssoc[Operators] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (Operators) ⇒ Boolean, msg: ⇒ Any): Operators

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to Ensuring[Operators] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (Operators) ⇒ Boolean): Operators

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to Ensuring[Operators] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): Operators

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to Ensuring[Operators] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): Operators

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to Ensuring[Operators] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to StringFormat[Operators] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def read(file: String): AnyRef

    Permalink

    Reads an object/model back from a file created by write command.

  23. def readArff(file: String, responseIndex: Int = 1): AttributeDataset

    Permalink

    Reads an ARFF file.

  24. def readBinarySparseData(file: String): BinarySparseDataset

    Permalink

    Reads binary sparse dataset.

    Reads binary sparse dataset. Each item is stored as an integer array, which are the indices of nonzero elements in ascending order

  25. def readCsv(file: String, response: Option[(Attribute, Int)] = None, comment: String = "%", missing: String = "?", header: Boolean = false, rowNames: Boolean = false): AttributeDataset

    Permalink

    Reads a CSV file with response variable.

  26. def readGct(file: String): AttributeDataset

    Permalink

    Reads GCT microarray gene expression file.

  27. def readLibsvm(file: String): SparseDataset

    Permalink

    Reads a LivSVM file.

  28. def readPcl(file: String): AttributeDataset

    Permalink

    Reads PCL microarray gene expression file.

  29. def readRes(file: String): AttributeDataset

    Permalink

    Reads RES microarray gene expression file.

  30. def readSparseData(file: String, arrayIndexOrigin: Int = 0): SparseDataset

    Permalink

    Reads spare dataset in coordinate triple tuple list format.

    Reads spare dataset in coordinate triple tuple list format. Coordinate file stores a list of (row, column, value) tuples:

    instanceID attributeID value
    instanceID attributeID value
    instanceID attributeID value
    instanceID attributeID value
    ...
    instanceID attributeID value
    instanceID attributeID value
    instanceID attributeID value

    Ideally, the entries are sorted (by row index, then column index) to improve random access times. This format is good for incremental matrix construction.

    Optionally, there may be 2 header lines

    D    // The number of instances
    W    // The number of attributes

    or 3 header lines

    D    // The number of instances
    W    // The number of attributes
    N    // The total number of nonzero items in the dataset.

    These header lines will be ignored.

    file

    the file path.

    arrayIndexOrigin

    the starting index of array. By default, it is 0 as in C/C++ and Java. But it could be 1 to parse data produced by other programming language such as Fortran.

  31. def readSparseMatrix(file: String): SparseMatrix

    Permalink

    Reads Harwell-Boeing column-compressed sparse matrix.

  32. def readTable(file: String, response: Option[(Attribute, Int)] = None, delimiter: String = "\\s+", comment: String = "%", missing: String = "?", header: Boolean = false, rowNames: Boolean = false): AttributeDataset

    Permalink

    Reads a delimited text file with response variable.

    Reads a delimited text file with response variable. By default, the parser expects a white-space-separated-values file. Each line in the file corresponds to a row in the table. Within a line, fields are separated by white spaces, each field belonging to one table column. This class can also be used to read other text tabular files by setting delimiter character such ash ','. The file may contain comment lines (starting with '%') and missing values (indicated by placeholder '?').

    file

    the file path

    response

    optional response variable attribute and the column index of response variable. The column index starts at 0.

    delimiter

    delimiter string

    comment

    the start of comment lines

    missing

    the missing value placeholder

    header

    true if the first row is header/column names

    rowNames

    true if the first column is row id/names

    returns

    an attribute dataset

  33. def readTxt(file: String): AttributeDataset

    Permalink

    Reads TXT microarray gene expression file.

    Reads TXT microarray gene expression file. The TXT format is a tab delimited file format that describes an expression dataset. It is organized as follows:

    The first line contains the labels Name and Description followed by the identifiers for each sample in the dataset. The Description is optional.

    Line format:

    Name(tab)Description(tab)(sample 1 name)(tab)(sample 2 name) (tab) ... (sample N name)

    Example:

    Name Description DLBC1_1 DLBC2_1 ... DLBC58_0

    The remainder of the file contains data for each of the genes. There is one line for each gene. Each line contains the gene name, gene description, and a value for each sample in the dataset. If the first line contains the Description label, include a description for each gene. If the first line does not contain the Description label, do not include descriptions for any gene. Gene names and descriptions can contain spaces since fields are separated by tabs.

    Line format:

    (gene name) (tab) (gene description) (tab) (col 1 data) (tab) (col 2 data) (tab) ... (col N data)

    Example:

    AFFX-BioB-5_at AFFX-BioB-5_at (endogenous control) -104 -152 -158 ... -44
  34. def readWavefrontObj(file: String): (Array[Array[Double]], Array[Array[Int]])

    Permalink

    Reads a Wavefront OBJ file.

    Reads a Wavefront OBJ file. The OBJ file format is a simple format of 3D geometry including the position of each vertex, the UV position of each texture coordinate vertex, vertex normals, and the faces that make each polygon defined as a list of vertices, and texture vertices. Vertices are stored in a counter-clockwise order by default, making explicit declaration of face normals unnecessary. OBJ coordinates have no units, but OBJ files can contain scale information in a human readable comment line.

    Note that we parse only vertex and face elements. All other information ignored.

    file

    the file path

    returns

    a tuple of vertex array and edge array.

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def write[T <: AnyRef](x: T, file: String): Unit

    Permalink

    Writes an object/model to a file.

  41. def [B](y: B): (Operators, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Operators to ArrowAssoc[Operators] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Operators to any2stringadd[Operators]

Inherited by implicit conversion StringFormat from Operators to StringFormat[Operators]

Inherited by implicit conversion Ensuring from Operators to Ensuring[Operators]

Inherited by implicit conversion ArrowAssoc from Operators to ArrowAssoc[Operators]

Ungrouped