|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.app.analyst.util.CSVHeaders
public class CSVHeaders
Utility class to help deal with CSV headers.
Constructor Summary | |
---|---|
CSVHeaders(File filename,
boolean headers,
CSVFormat format)
Construct the object. |
|
CSVHeaders(List<String> inputHeadings)
Construct the object. |
|
CSVHeaders(String[] inputHeadings)
Construct the object. |
Method Summary | |
---|---|
int |
find(String name)
Find the specified column. |
String |
getBaseHeader(int index)
Get the base header, strip any (...). |
String |
getHeader(int index)
Get the specified header. |
List<String> |
getHeaders()
|
int |
getSlice(int currentIndex)
Get the timeslice for the specified index. |
static int |
parseTimeSlice(String name)
Parse a timeslice from a header such as (t-1). |
int |
size()
|
static String |
tagColumn(String name,
int part,
int timeSlice,
boolean multiPart)
Tag a column with part # and timeslice. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSVHeaders(File filename, boolean headers, CSVFormat format)
filename
- The filename.headers
- False if headers are not extended.format
- The CSV format.public CSVHeaders(List<String> inputHeadings)
inputHeadings
- The input headings.public CSVHeaders(String[] inputHeadings)
inputHeadings
- The input headings.Method Detail |
---|
public static int parseTimeSlice(String name)
name
- The column name.
public static String tagColumn(String name, int part, int timeSlice, boolean multiPart)
name
- The name of the column.part
- The part #.timeSlice
- The timeslice.multiPart
- True if this is a multipart column.
public int find(String name)
name
- The column name.
public String getBaseHeader(int index)
index
- The index of the header.
public String getHeader(int index)
index
- The index of the header to get.
public List<String> getHeaders()
public int getSlice(int currentIndex)
currentIndex
- The index to get the time slice for.
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |