Documentation of 'jhplot.math.pca.DataReader' Java class.
DataReader
jhplot.math.pca

Class DataReader



  • public class DataReader
    extends java.lang.Object
    Reads data matrix from a CSV file
    • Constructor Summary

      Constructors 
      Constructor and Description
      DataReader() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Matrix read(java.io.InputStream inStream, boolean ignoreLastColumn)
      Read data matrix from a CSV file.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataReader

        public DataReader()
    • Method Detail

      • read

        public static Matrix read(java.io.InputStream inStream,
                                  boolean ignoreLastColumn)
                           throws java.io.IOException
        Read data matrix from a CSV file. The first row (corresponding to the header) is ignored. Some lines may be commented out by a '#' character.
        Parameters:
        inStream - CSV file
        ignoreLastColumn - if True, the last column is ignored. This is helpful when the last column corresponds to a class of a vector.
        Returns:
        data matrix
        Throws:
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG