|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.model.Cluster
An instance of Cluster
holds the metadata about a cluster in a CluteringModel
. Cluster
objects are always associated with a ClusteringModel
object. A cluster represents a group of records identified as homogeneous by the clustering algorithm. A cluster is characterized by its centroid, attribute histograms, and place in the clustering model hierarchical tree.
Method Summary | |
AttributeHistogram |
getAttributeHistogram(Connection dmsCon, java.lang.String attrName) Returns the one-dimensional histogram of the attribute specified by attrName . |
java.util.Vector |
getChildren() Returns the collection of Cluster objects that are children of the cluster node. |
ClusterCentroid |
getClusterCentroid() Returns the ClusterCentroid object associated with a cluster. |
Category |
getClusterCentroidValue(MiningAttribute attr) Returns the attribute value of the cluster centroid for a given mining attribute. |
int |
getId() Returns the cluster id. |
int |
getLevel() Returns the level in the clustering tree associated with the Cluster object. |
Cluster |
getParent() Returns the parent of a Cluster . |
int |
getRecordCount() Returns the number of records in the training data assigned to the cluster during the model build. |
Predicate |
getSplitPredicate() Returns a SplitPredicate object that stores information on how records are assigned to the cluster node's children. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public AttributeHistogram getAttributeHistogram(Connection dmsCon, java.lang.String attrName) throws java.sql.SQLException, MiningObjectException, InvalidArgumentException, ODMException
attrName
.dmsCon
- Connection to the DMSattrName
- Attribute name stringattrName
InvalidArgumentException
- when the attrName is null.MiningObjectException
- when the model cannot be opened.java.sql.SQLException
- when the attribute histogram meta data cannot be retrieved.ODMException
- attrName
is empty or exceeds 30 bytes in length.public int getId()
public int getRecordCount()
public ClusterCentroid getClusterCentroid()
ClusterCentroid
object associated with a cluster.public Category getClusterCentroidValue(MiningAttribute attr) throws InvalidArgumentException
attr
- Mining attributeattr
InvalidArgumentException
- when the attr is null.public Cluster getParent()
Cluster
. The method returns null if the cluster node has no parent. A parent of a cluster is its direct ancestor in the hierarchical tree. The root of the tree has no ancestor.Cluster
objectpublic java.util.Vector getChildren()
Cluster
objects that are children of the cluster node. The method returns null if the cluster node has no children. The children of a cluster represents the direct descendents of this cluster in the clustering hierarchy. Leaf nodes have no children and a null value would be returned.Cluster
objectspublic int getLevel()
Cluster
object. A tree level represents the distance between a cluster node and the root node within a clustering hierarchy. That is, how many splits in a tree branch were required to produce a node. The root node is at level 1. Its children are at level 2. Their children are at level 3, etc.public Predicate getSplitPredicate()
SplitPredicate
object that stores information on how records are assigned to the cluster node's children. Since the clustering tree is binary, the predicate defines the conditions for one of the branches. Records not satisfying these conditions fall into the other branch. The method is relevant only in the O-Cluster algorithm. If a cluster node has no children, this method returns null.
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |