|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.associations.classification.CrList
public class CrList
Class for the associated list of a CrTree. A CrTree(n-ary tree in child-sibling representation) can store classification association rules(CARs) and allows pruning and classification. Tree Structure described at: W. Li, J. Han, J.Pei: CMAR: Accurate and Efficient Classification Based on Multiple Class-Association Rules. In ICDM'01:369-376,2001.
Constructor Summary | |
---|---|
CrList()
Constructor that creates an empty list. |
Method Summary | |
---|---|
void |
deleteListElement(CrListElement element)
Deletes the CrListElement out of the CrList |
CrListElement |
getHead()
Gets the head of the CrList |
CrListElement |
insertListElement(int num,
int value,
int i)
Inserts a new element at the end of the list and returns it. |
boolean |
isEmpty()
Returns whether or not the CrList is empty. |
CrListElement |
searchListElement(int num,
int value)
Searches for a CrListElement with the specified attribute number and attribute value. |
int[] |
searchListIndex(int num,
int value)
Gets the index and the minimum height of a CrListElement in a CrList |
java.lang.String |
toString()
Returns a string description of the CrList |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CrList()
Method Detail |
---|
public CrListElement insertListElement(int num, int value, int i)
num
- The attribute number that is stored in a CrListElementvalue
- The attribute value that is stored in a CrListElementi
- the minimum height
public void deleteListElement(CrListElement element)
element
- The CrListElement to deletepublic boolean isEmpty()
public CrListElement getHead()
public java.lang.String toString()
toString
in class java.lang.Object
public CrListElement searchListElement(int num, int value)
num
- the attribute numbervalue
- the attribute value
public int[] searchListIndex(int num, int value)
num
- the attribute numbervalue
- the attribute value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |