|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.Filter
wpi.filters.TimeSequenceInstanceFilter
Assumes intances form a single instance containing time sequence
attributes. Each instance in instances comprises a point in time.
The values for each instance corresponding to a single point in
time are concatanated to form a single value for each attribute
using a delimeter ":" to seperate each value inside a
time sequence attribute. A time_number attribute is added for
relative reference to points in time.
Please note: if the delimeter appears in the values of the data
being filtered it will be replaced by a "-"
Valid filter-specific options are:
Field Summary | |
static char |
DELIMITER_REPLACE
The character used to replace occurrances of the delimiter in the actual data being filtered |
static java.lang.String |
TIMELINE
The name of the time line attribute that this filter creates |
Fields inherited from class weka.filters.Filter |
m_NewBatch |
Constructor Summary | |
TimeSequenceInstanceFilter()
|
Method Summary | |
boolean |
batchFinished()
Signifies that this batch of input to the filter is finished. |
java.lang.String[] |
getOptions()
Gets the current settings of the filter. |
java.lang.String |
globalInfo()
Returns a string decribing this filter. |
boolean |
input(weka.core.Instance instance)
Input an instance for filtering. |
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 |
setInputFormat(weka.core.Instances instanceInfo)
Sets the format of the input instances. |
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object. |
private void |
setOutputFormat()
Sets the output format. |
Methods inherited from class weka.filters.Filter |
batchFilterFile, bufferInput, copyStringValues, copyStringValues, filterFile, flushInput, getInputFormat, getInputStringIndex, getOutputFormat, getOutputStringIndex, getStringIndices, inputFormat, isOutputFormatDefined, numPendingOutput, output, outputFormat, outputFormatPeek, outputPeek, push, resetQueue, setOutputFormat, useFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static char DELIMITER_REPLACE
public static java.lang.String TIMELINE
Constructor Detail |
public TimeSequenceInstanceFilter()
Method Detail |
public boolean setInputFormat(weka.core.Instances instanceInfo) throws java.lang.Exception
instanceInfo
- an Instances object containing the input instance
structure (any values of instances contained in the object are
ignored) but in addition to the structure, this filter does require
to know the number of instances in the input data set.
java.lang.Exception
- if the format couldn't be set successfullypublic boolean input(weka.core.Instance instance)
instance
- the input instance
java.lang.IllegalStateException
- if no input format has been defined.public boolean batchFinished()
java.lang.IllegalStateException
- if no input structure has been defined.private void setOutputFormat()
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 to the filter:
use -h for help
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |