|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwpi.timesequence.AppendInstances
Appends instances to a target data set. Any attributes existing in the append data set that do not appear in the target data set are added. All instances in the target are set to unknown for those attributes.
Field Summary | |
private weka.core.Instances |
append
Append Instances |
private java.lang.String |
appendName
Name of the append file last used |
private weka.core.Instances |
target
Target Instances |
private java.lang.String |
targetName
Name of the target file used |
Constructor Summary | |
AppendInstances()
Constructor. |
|
AppendInstances(java.lang.String[] options)
Constructor - uses options to initialize |
Method Summary | |
private boolean |
add(weka.core.Instances instances)
Adds the given instances to target. |
boolean |
append(weka.core.Instances instances)
Appends instances to the target. |
boolean |
append(java.lang.String name)
Appends instances to the target. |
static weka.core.Instances |
appendInstances(weka.core.Instances i1,
weka.core.Instances i2)
Returns a new data set that has all the attributes from both data sets and all data from both data sets. |
weka.core.Instances |
getAppend()
Returns the last instances appended. |
java.lang.String |
getAppendName()
Returns the file name of the last data set appended. |
java.lang.String[] |
getOptions()
Gets the current settings of the filter. |
weka.core.Instances |
getTarget()
Returns the target instances. |
java.lang.String |
getTargetName()
Returns the target file name. |
java.lang.String |
globalInfo()
Returns a string decribing this filter. |
private void |
init()
Initializes data members |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
boolean |
ready()
Checks if we are ready to appendinstances to the target. |
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object. |
boolean |
setTarget(weka.core.Instances instances)
Set the target instances |
boolean |
setTarget(java.lang.String name)
Sets the target instances to use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String targetName
private java.lang.String appendName
private weka.core.Instances target
private weka.core.Instances append
Constructor Detail |
public AppendInstances()
public AppendInstances(java.lang.String[] options) throws java.lang.Exception
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedMethod Detail |
private void init()
public boolean setTarget(java.lang.String name) throws java.lang.Exception
name
- name of the data file containing the instances
true
if all set to append instances
java.lang.Exception
public boolean setTarget(weka.core.Instances instances)
instances
- instances to use as target
true
if all set to append instancespublic boolean append(java.lang.String name) throws java.lang.Exception
name
- name of the data file containing the instances to append
true
if instances were appended successfully
java.lang.Exception
public boolean append(weka.core.Instances instances) throws java.lang.Exception
instances
- instances to append
true
if instances were appended successfully
java.lang.Exception
public static weka.core.Instances appendInstances(weka.core.Instances i1, weka.core.Instances i2) throws java.lang.Exception
i1
- data set to append instances on toi2
- data set to be appended
java.lang.Exception
private boolean add(weka.core.Instances instances)
public java.lang.String getTargetName()
public weka.core.Instances getTarget()
public java.lang.String getAppendName()
public weka.core.Instances getAppend()
public boolean ready()
public java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public static void main(java.lang.String[] argv)
argv
- should contain arguments.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |