|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for representations of a hierarchy of classes.
Method Summary | |
int |
depth()
Returns the depth of the Hierarchy. |
ClassHierarchy[] |
getChildren()
Returns the hierarchy of classes as given by the children. |
java.util.Map |
getChildren(Instances instanceInfo)
Returns the childrenHierarchies as Map. |
java.lang.String[][] |
getCoveredClasses()
Returns the classes covered by this hierarchy splitted into several arrays according to their distribution into several superclasses (reflecting the distribution on several children of this hierarchy). |
java.lang.String[] |
getCoveredClassesFlat()
Returns the class-names covered by this node of the hierarchy. |
Instance |
mergeClasses(Instance instance)
Returns a new Instance with classes selected and merged to superclasses according to the superclasses of this hierarchy. |
Instances |
mergeClasses(Instances instances)
Returns a new Instances with classes merged to superclasses according to the superclasses of this hierarchy. |
Instances |
selectCoveredClasses(Instances data)
Returns the part of data covered by this hierarchy. |
java.lang.String |
toString()
Returns a String-representation of this Hierarchy. |
Method Detail |
public ClassHierarchy[] getChildren()
public java.util.Map getChildren(Instances instanceInfo) throws java.lang.Exception
instanceInfo
- the instanecs providing the classes
java.lang.Exception
- due to the use of filterspublic Instances selectCoveredClasses(Instances data) throws java.lang.Exception
data
- to data to select from
java.lang.Exception
- due to use of filterspublic Instance mergeClasses(Instance instance) throws java.lang.Exception
instance
- the instance to merge the classes of
java.lang.Exception
- due to the use of filterspublic Instances mergeClasses(Instances instances) throws java.lang.Exception
instances
- the instances to merge the classes of
java.lang.Exception
- due to the use of filterspublic java.lang.String toString()
public int depth()
public java.lang.String[][] getCoveredClasses()
public java.lang.String[] getCoveredClassesFlat()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |