Documentation of 'org.encog.app.analyst.util.CSVHeaders' Java class
CSVHeaders
org.encog.app.analyst.util

Class CSVHeaders



  • public class CSVHeaders
    extends java.lang.Object
    Utility class to help deal with CSV headers.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CSVHeaders(java.io.File filename, boolean headers, CSVFormat format)
      Construct the object.
      CSVHeaders(java.util.List<java.lang.String> inputHeadings)
      Construct the object.
      CSVHeaders(java.lang.String[] inputHeadings)
      Construct the object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int find(java.lang.String name)
      Find the specified column.
      java.lang.String getBaseHeader(int index)
      Get the base header, strip any (...).
      java.lang.String getHeader(int index)
      Get the specified header.
      java.util.List<java.lang.String> getHeaders() 
      int getSlice(int currentIndex)
      Get the timeslice for the specified index.
      static int parseTimeSlice(java.lang.String name)
      Parse a timeslice from a header such as (t-1).
      int size() 
      static java.lang.String tagColumn(java.lang.String name, int part, int timeSlice, boolean multiPart)
      Tag a column with part # and timeslice.
      • Methods inherited from class java.lang.Object

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

      • CSVHeaders

        public CSVHeaders(java.io.File filename,
                          boolean headers,
                          CSVFormat format)
        Construct the object.
        Parameters:
        filename - The filename.
        headers - False if headers are not extended.
        format - The CSV format.
      • CSVHeaders

        public CSVHeaders(java.util.List<java.lang.String> inputHeadings)
        Construct the object.
        Parameters:
        inputHeadings - The input headings.
      • CSVHeaders

        public CSVHeaders(java.lang.String[] inputHeadings)
        Construct the object.
        Parameters:
        inputHeadings - The input headings.
    • Method Detail

      • parseTimeSlice

        public static int parseTimeSlice(java.lang.String name)
        Parse a timeslice from a header such as (t-1).
        Parameters:
        name - The column name.
        Returns:
        The timeslice.
      • tagColumn

        public static java.lang.String tagColumn(java.lang.String name,
                                                 int part,
                                                 int timeSlice,
                                                 boolean multiPart)
        Tag a column with part # and timeslice.
        Parameters:
        name - The name of the column.
        part - The part #.
        timeSlice - The timeslice.
        multiPart - True if this is a multipart column.
        Returns:
        The new tagged column.
      • find

        public int find(java.lang.String name)
        Find the specified column.
        Parameters:
        name - The column name.
        Returns:
        The index of the column.
      • getBaseHeader

        public java.lang.String getBaseHeader(int index)
        Get the base header, strip any (...).
        Parameters:
        index - The index of the header.
        Returns:
        The base header.
      • getHeader

        public java.lang.String getHeader(int index)
        Get the specified header.
        Parameters:
        index - The index of the header to get.
        Returns:
        The header value.
      • getHeaders

        public java.util.List<java.lang.String> getHeaders()
        Returns:
        The headers.
      • getSlice

        public int getSlice(int currentIndex)
        Get the timeslice for the specified index.
        Parameters:
        currentIndex - The index to get the time slice for.
        Returns:
        The timeslice.
      • size

        public int size()
        Returns:
        The number of headers.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.