Java Reference
In-Depth Information
Table 9-20, to specify apply output contents. Similar to classification,
clustering apply has methods: mapTopCluster —maps apply contents to
the top cluster, mapByRank —maps apply contents to the clusters by the
specified rank, mapByClusterIdentifier —maps apply contents to the
specified clusters, and mapClusters —maps apply contents to all clusters.
Table 9-20
Clustering-related interfaces
clustering.ClusteringSettings extends base.BuildSettings
Methods
Description
set/getAggregationFunction(
AggregationFunction function )
Used to set/get the aggregation function to be used.
set/getAttributeComparison-
Function(String logicalAttribute-
Name,AttributeComparisonFunction
function)
Used to set/get the attribute comparison function to be used.
set/getMaxNumberOfClusters(
int maxClusters)
Used to set/get the maximum number of clusters allowed in
the model.
set/getMinClusterCaseCount(
long minCaseCount)
Used to set/get the minimum number of cases allowed per
cluster.
set/getMaxLevels(int numberOfLevels)
Used to set/get the maximum level, or hierarchy depth, for
hierarchical clustering.
set/getSimilarityMatrix(
String logicalAttributeName,
SimilarityMatrix matrix)
Used to set/get the similarity values to be used for the speci-
fied attribute. The SimilarityMatrix represents the similar-
ity values between attribute values.
clustering.ClusteringModel extends base.Model
Methods
Description
getClusters(): Collection
Returns the collection of Cluster objects in the clustering
model.
getLeafClusters(): Collection
Returns the collection of leaf Cluster objects in the clustering
model.
getNumberOfClusters(): int
Returns the number of clusters in the model.
getCluster(int identifier): Cluster
Returns the Cluster object in the model with the specified
identifier.
getNumberOfLevels(): int
Returns the number of levels in the ClusteringModel.
getRootClusters(): Collection
Returns a collection of the root clusters of the Clustering-
Model.
getRules(): Collection
Returns a collection of the rules from the clustering model.
Search WWH ::




Custom Search