Package | Description |
---|---|
oracle.spatial.hadoop.vector.cluster.kmeans |
Contains classes used for k-means clustering .
|
oracle.spatial.hadoop.vector.cluster.kmeans.mapred |
Contains mapreduce-related components to perform the k-means clustering algorithm.
|
Modifier and Type | Method and Description |
---|---|
ClusterInfo[] |
KMeans.KMeansIterationResult.getClusters()
Gets the last clusters information
|
static ClusterInfo[] |
KMeans.readClusters(FileStatus[] clusterSeqFiles, int k, Configuration conf)
Reads the information from a list of cluster files
|
Modifier and Type | Method and Description |
---|---|
void |
ClusterInfo.setCluster(ClusterInfo cluster)
Copies the values from another ClusterInfo
|
static void |
KMeans.writeClusters(Path clustersFile, ClusterInfo[] clusters, Configuration conf)
Writes the given
ClusterInfo array to a sequence file |
static void |
KMeans.writeJsonClusters(Path clustersFile, ClusterInfo[] clusters, Configuration conf)
Writes the given
ClusterInfo array to a JSON file |
Constructor and Description |
---|
ClusterInfo(ClusterInfo cluster)
Creates a new instanced with the same information than another ClusterInfo
|
KMeansIterationResult(ClusterInfo[] clusters, int convergentClusters, boolean successfullIteration)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
ClusterCenterReducer.reduce(ClusterInfo key, java.util.Iterator<RecordInfo> values, <any> output, Reporter reporter) |
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.