org.encog.app.analyst.csv.basic
Class BasicCachedFile
java.lang.Object
org.encog.app.analyst.csv.basic.BasicFile
org.encog.app.analyst.csv.basic.BasicCachedFile
- All Implemented Interfaces:
- QuantTask
- Direct Known Subclasses:
- NinjaFileConvert, ProcessIndicators
public class BasicCachedFile
- extends BasicFile
Forms the foundation of all of the cached files in Encog Quant.
Methods inherited from class org.encog.app.analyst.csv.basic.BasicFile |
appendSeparator, getColumnCount, getFormat, getInputFilename, getInputHeadings, getPrecision, getRecordCount, getReport, getReportInterval, getScript, isAnalyzed, isExpectInputHeaders, isProduceOutputHeaders, performBasicCounts, prepareOutputFile, readHeaders, reportDone, reportDone, requestStop, resetStatus, setAnalyzed, setColumnCount, setExpectInputHeaders, setInputFilename, setInputFormat, setInputHeadings, setPrecision, setProduceOutputHeaders, setRecordCount, setReport, setReportInterval, setScript, shouldStop, toString, updateStatus, updateStatus, validateAnalyzed, writeRow |
BasicCachedFile
public BasicCachedFile()
addColumn
public void addColumn(BaseCachedColumn column)
- Add a new column.
- Parameters:
column
- The column to add.
analyze
public void analyze(File input,
boolean headers,
CSVFormat format)
- Analyze the input file.
- Parameters:
input
- The input file.headers
- True, if there are headers.format
- The format of the CSV data.
getColumnData
public String getColumnData(String name,
ReadCSV csv)
- Get the data for a specific column.
- Parameters:
name
- The column to read.csv
- The CSV file to read from.
- Returns:
- The column data.
getColumnMapping
public Map<String,BaseCachedColumn> getColumnMapping()
- Returns:
- The column mappings.
getColumns
public List<BaseCachedColumn> getColumns()
- Returns:
- The columns.
Copyright © 2014. All Rights Reserved.