|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 |
Type | Method |
---|---|
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 stringAttributeHistogram
- Histogram for the mining attribute attrName
InvalidArgumentException
- is thrown MiningObjectException
- is thrown SQLException
- is thrown ODMException
- public int getId()
int
- Cluster idpublic int getRecordCount()
int
- Number of records belonging to a clusterpublic ClusterCentroid getClusterCentroid()
ClusterCentroid
object associated with a
cluster.ClusterCentroid
public Category getClusterCentroidValue(MiningAttribute attr) throws InvalidArgumentException
attr
- Mining attributeCategory
- Centroid value for the attribute attr
InvalidArgumentException
- is thrown 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
- Parent 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.Vector
- Collection of children 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.int
- Tree levelpublic 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.SplitPredicate
- Split predicate associated with the cluster node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |