|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.associations.classification.CrListElement
public class CrListElement
Class for list elements in 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. Each possible item of a rule premise is stored once in the associated list.
Constructor Summary | |
---|---|
CrListElement(CrListElement pred,
CrListElement succ,
int num,
int value,
int i)
Constructor that constructs a CrListElement and a CrNode to which the list element is pointing. |
Method Summary | |
---|---|
boolean |
equals(int num,
int value)
Compares two CrListElements |
int[] |
getContent()
Gets the item that is stored in a CrListElement. |
int |
getHeight()
Gets the minimum height of all nodes in a CrTree that store the same item than the ListElement |
CrListElement |
getPred()
Gets the predecessor |
CrNode |
getSiblingNode()
Gets the node to wich the CrListElement is pointing |
CrListElement |
getSucc()
Gets the successor |
void |
setContent(int[] insert)
Sets the item that is stored in a CrListElement. |
void |
setHeight(int i)
Sets the minimum height of all nodes in a CrTree that store the same item than the ListElement |
void |
setPred(CrListElement input)
Sets the predecessor |
void |
setSiblingNode(CrNode sibling)
Sets the node to wich the CrListElement is pointing |
void |
setSucc(CrListElement input)
Sets the sucessor. |
java.lang.String |
toString()
Methods that returns a string description for a CrListElement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CrListElement(CrListElement pred, CrListElement succ, int num, int value, int i)
pred
- the predecessor in the listsucc
- the successor in the listnum
- the attribute numbervalue
- the attribute valuei
- the minimum heightMethod Detail |
---|
public void setPred(CrListElement input)
input
- a CrListElementpublic void setSucc(CrListElement input)
input
- a CrListElementpublic void setHeight(int i)
i
- the minimum heightpublic int getHeight()
public CrListElement getPred()
public CrListElement getSucc()
public CrNode getSiblingNode()
public void setSiblingNode(CrNode sibling)
sibling
- a CrNodepublic int[] getContent()
public void setContent(int[] insert)
insert
- an integer array containing the attribute number and the attribute valuepublic boolean equals(int num, int value)
num
- the attribute numbervalue
- the attribute value
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |