|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.gui.visualization.instance.InstanceComparePanel.DatasetIndexer
public static class InstanceComparePanel.DatasetIndexer
Helper class for indexing the rows of a dataset.
| Field Summary | |
|---|---|
protected Index |
m_AttributeIndex
the attribute to index. |
protected weka.core.Instances |
m_Dataset
the underlying dataset. |
protected TreeMap<String,Integer> |
m_Index
the index. |
protected Boolean |
m_IsString
whether the attribute is numeric or string/nominal. |
protected Range |
m_Range
the range of attributes to use. |
protected weka.filters.unsupervised.attribute.Remove |
m_Remove
the remove filter for trimming the range of attributes to return. |
static int |
MAX_DECIMAL
the maximum number of decimals after the decimal point to use. |
| Constructor Summary | |
|---|---|
InstanceComparePanel.DatasetIndexer()
Initializes the indexer. |
|
| Method Summary | |
|---|---|
String |
getAttributeIndex()
Returns the index of the attribute to use for indexing. |
weka.core.Instances |
getDataset()
Returns the dataset to index. |
TreeMap<String,Integer> |
getIndex()
Returns the index, generates it if necessary. |
String |
getRange()
Returns the range of attributes to use. |
Instance |
getRow(String row)
Returns the Instance for the row. |
List<String> |
getRows()
Returns a list of row IDs. |
boolean |
hasAttributeIndex()
Checks whether an attribute index has been set. |
protected void |
initialize()
Initializes the indexer, if necessary. |
boolean |
isString()
Returns whether the sort index is nominal/string or numeric. |
protected void |
reset()
Invalidates the indexer. |
void |
setAttributeIndex(String value)
Sets the index of the attribute to use for indexing. |
void |
setDataset(weka.core.Instances value)
Sets the dataset to index. |
void |
setRange(String value)
Sets the range of attributes to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_DECIMAL
protected weka.core.Instances m_Dataset
protected Index m_AttributeIndex
protected Range m_Range
protected TreeMap<String,Integer> m_Index
protected Boolean m_IsString
protected weka.filters.unsupervised.attribute.Remove m_Remove
| Constructor Detail |
|---|
public InstanceComparePanel.DatasetIndexer()
| Method Detail |
|---|
protected void reset()
public void setDataset(weka.core.Instances value)
value - the datasetpublic weka.core.Instances getDataset()
public boolean hasAttributeIndex()
public void setAttributeIndex(String value)
value - the indexpublic String getAttributeIndex()
public void setRange(String value)
value - the rangepublic String getRange()
protected void initialize()
public boolean isString()
public TreeMap<String,Integer> getIndex()
public List<String> getRows()
public Instance getRow(String row)
row - the row to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||