Java Reference
In-Depth Information
Table 9-20
(continued)
Methods
Description
getSimilarity(int clusterIdentifier1,
int clusterIdentifier2): Double
Returns the similarity of two clusters represented as a value
between 0 and 1.
hasProperty(ClusteringModelProperty
property): boolean
Returns true if the specified property is supported by the
clustering model. ClusteringModelProperty is an enumera-
tion of properties, such as centroid, hierarchy, cluster rules,
attribute statistics etc.
clustering.Cluster
Methods
Description
getClusterId(): int
Returns the cluster identifier.
getCaseCount(): long
Returns the number of cases from the build data assigned to
the cluster during the model build, inclusive of children
counts.
getName(): String
Returns the name of the cluster designated by the clustering
algorithm.
getStatistics(): AttributeStatisticsSet
Returns the AttributeStatisticsSet object that characterizes
the cases assigned to the cluster.
getRule(): Rule
Returns the cluster rule.
getCentroidCoordinate
(java.lang.String numericalAttribute-
Name): Double
Returns the center point of the specified numerical attribute
for the cluster.
getCentroidCoordinate
(java.lang.String categoricalAttribute-
Name, java.lang.Object category):
java.lang.Double
Returns the center point of the specified categorical attribute
for a specific category value for the cluster.
getSupport(): double
Returns the support defined as a percentage of cases assigned
to this cluster relative to the total number of cases in the
build data.
getLevel(): int
Returns the level in the clustering hierarchy associated with
the Cluster object.
getAncestors(): Cluster[]
Returns the ancestors of the cluster.
getChildren(): Cluster[]
Returns an array of Cluster objects that are children of the
cluster node.
getParent(): Cluster
Returns the parent of the cluster.
getSplitPredicate(): Predicate
Returns a Predicate object that stores information on how
cases are assigned to the cluster node's children.
Search WWH ::




Custom Search