org.encog.app.analyst.script
public class AnalystScript extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CLASS
The default MAX size for a class.
|
Constructor and Description |
---|
AnalystScript()
Construct an analyst script.
|
Modifier and Type | Method and Description |
---|---|
void |
addTask(AnalystTask task)
Add a task.
|
void |
clearTasks()
Clear all tasks.
|
AnalystField |
defineClass(String fieldName,
FieldDirection d,
NormalizationAction action,
List<ClassItem> classes) |
AnalystField |
defineField(String fieldName,
FieldDirection d,
NormalizationAction action,
double theActualHigh,
double theActualLow) |
CSVFormat |
determineFormat()
Determine the output format.
|
boolean |
expectInputHeaders(String filename)
Determine if input headers are expected.
|
AnalystField |
findAnalystField(String fieldName) |
DataField |
findDataField(String name)
Find the specified data field.
|
int |
findDataFieldIndex(DataField df)
Find the specified data field and return its index.
|
AnalystField |
findNormalizedField(String name,
int slice)
Find the specified normalized field.
|
String |
getBasePath() |
DataField[] |
getFields() |
AnalystNormalize |
getNormalize() |
List<ScriptOpcode> |
getOpcodes() |
int |
getPrecision() |
AnalystProcess |
getProcess() |
ScriptProperties |
getProperties() |
AnalystSegregate |
getSegregate() |
AnalystTask |
getTask(String name)
Get the specified task.
|
Map<String,AnalystTask> |
getTasks() |
boolean |
hasClasses() |
void |
init()
Init this script.
|
boolean |
isGenerated(String filename)
Determine if the specified file was generated.
|
void |
load(InputStream stream)
Load the script.
|
void |
markGenerated(String filename)
Mark the sepcified filename as generated.
|
File |
resolveFilename(String sourceID)
Resolve the specified filename.
|
void |
save(OutputStream stream)
Save to the specified output stream.
|
void |
setBasePath(String theBasePath)
Set the base path.
|
void |
setDefaultNormalizedRange(double low,
double high) |
void |
setFields(DataField[] theFields) |
public static final int DEFAULT_MAX_CLASS
public void addTask(AnalystTask task)
task
- The task to add.public void clearTasks()
public CSVFormat determineFormat()
public boolean expectInputHeaders(String filename)
filename
- The filename.public DataField findDataField(String name)
name
- The name to search for.public int findDataFieldIndex(DataField df)
df
- The data field to search for.public AnalystField findNormalizedField(String name, int slice)
name
- The name of the field we are searching for.slice
- The timeslice.public String getBasePath()
public DataField[] getFields()
public AnalystNormalize getNormalize()
public int getPrecision()
public ScriptProperties getProperties()
public AnalystSegregate getSegregate()
public AnalystTask getTask(String name)
name
- The name of the testk.public Map<String,AnalystTask> getTasks()
public void init()
public boolean isGenerated(String filename)
filename
- The filename to check.public void load(InputStream stream)
stream
- The stream to load from.public void markGenerated(String filename)
filename
- The filename.public File resolveFilename(String sourceID)
sourceID
- The filename to resolve.public void save(OutputStream stream)
stream
- The output stream.public void setBasePath(String theBasePath)
theBasePath
- The base path.public void setFields(DataField[] theFields)
theFields
- the fields to setpublic AnalystField findAnalystField(String fieldName)
public AnalystProcess getProcess()
public List<ScriptOpcode> getOpcodes()
public boolean hasClasses()
public AnalystField defineField(String fieldName, FieldDirection d, NormalizationAction action, double theActualHigh, double theActualLow)
public void setDefaultNormalizedRange(double low, double high)
public AnalystField defineClass(String fieldName, FieldDirection d, NormalizationAction action, List<ClassItem> classes)
Copyright © 2014. All Rights Reserved.