|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.weka.columnfinder.AbstractColumnFinder
public abstract class AbstractColumnFinder
Ancestor for classes that find columns of interest in datasets.
| Field Summary |
|---|
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractColumnFinder()
|
|
| Method Summary | |
|---|---|
static HashSet<Integer> |
arrayToHashSet(int[] indices)
Turns the array into a hashset. |
protected void |
check(weka.core.Instances data)
Checks the data. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
protected abstract int[] |
doFindColumns(weka.core.Instances data)
Returns the columns of interest in the dataset. |
boolean |
equals(Object o)
Returns whether the two objects are the same. |
int[] |
findColumns(weka.core.Instances data)
Returns the columns of interest in the dataset. |
static ColumnFinder |
forCommandLine(String cmdline)
Instantiates the column finder from the given commandline (i.e., classname and optional options). |
static ColumnFinder |
forName(String classname,
String[] options)
Instantiates the column finder with the given options. |
static String[] |
getColumnFinders()
Returns a list with classnames of column finders. |
ColumnFinder |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
ColumnFinder |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractColumnFinder()
| Method Detail |
|---|
protected void check(weka.core.Instances data)
data - the data to checkprotected abstract int[] doFindColumns(weka.core.Instances data)
data - the dataset to inspect
public int[] findColumns(weka.core.Instances data)
findColumns in interface ColumnFinderdata - the dataset to inspect
public int compareTo(Object o)
o - the object to be compared.
public boolean equals(Object o)
equals in class Objecto - the object to be compared
public ColumnFinder shallowCopy()
shallowCopy in interface ShallowCopySupporter<ColumnFinder>public ColumnFinder shallowCopy(boolean expand)
shallowCopy in interface ShallowCopySupporter<ColumnFinder>expand - whether to expand variables to their current values
public static String[] getColumnFinders()
public static ColumnFinder forName(String classname,
String[] options)
classname - the classname of the column finder to instantiateoptions - the options for the column finder
public static ColumnFinder forCommandLine(String cmdline)
cmdline - the classname (and optional options) of the
column finder to instantiate
public static HashSet<Integer> arrayToHashSet(int[] indices)
indices - the indices to turn into hashset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||