public class NNChainHAC extends KClustererBase
Lance Williams
dissimilarity and uses O(n)
memory. Modifier | Constructor and Description |
---|---|
|
NNChainHAC()
Creates a new NNChainHAC using the
Ward method. |
|
NNChainHAC(LanceWilliamsDissimilarity distMeasure)
Creates a new NNChainHAC
|
|
NNChainHAC(LanceWilliamsDissimilarity distMeasure,
DistanceMetric distance)
Creates a new NNChain using the given dissimilarity measure and distance
metric.
|
protected |
NNChainHAC(NNChainHAC toCopy)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
NNChainHAC |
clone() |
int[] |
cluster(DataSet dataSet,
ExecutorService threadpool,
int[] designations)
Performs clustering on the given data set.
|
int[] |
cluster(DataSet dataSet,
int[] designations)
Performs clustering on the given data set.
|
int[] |
cluster(DataSet dataSet,
int clusters,
ExecutorService threadpool,
int[] designations) |
int[] |
cluster(DataSet dataSet,
int clusters,
int[] designations) |
int[] |
cluster(DataSet dataSet,
int lowK,
int highK,
ExecutorService threadpool,
int[] designations) |
int[] |
cluster(DataSet dataSet,
int lowK,
int highK,
int[] designations) |
int[] |
getClusterDesignations(int[] designations,
int clusters)
Returns the assignment array for that would have been computed for the
previous data set with the desired number of clusters.
|
List<List<DataPoint>> |
getClusterDesignations(int clusters,
DataSet data)
Returns the assignment array for that would have been computed for the
previous data set with the desired number of clusters.
|
cluster, cluster, cluster, cluster
cluster, cluster, createClusterListFromAssignmentArray, getDatapointsFromCluster, supportsWeightedData
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cluster, cluster, supportsWeightedData
public NNChainHAC()
Ward
method.public NNChainHAC(LanceWilliamsDissimilarity distMeasure)
distMeasure
- the dissimilarity measure to usepublic NNChainHAC(LanceWilliamsDissimilarity distMeasure, DistanceMetric distance)
Euclidean
distance, which is the norm for
Hierarchical Cluster.distMeasure
- the dissimilarity measure to usedistance
- the distance metric to useprotected NNChainHAC(NNChainHAC toCopy)
toCopy
- the object to copypublic NNChainHAC clone()
clone
in interface Clusterer
clone
in interface KClusterer
clone
in class KClustererBase
public int[] cluster(DataSet dataSet, int[] designations)
Clusterer
dataSet
- the data set to perform clustering ondesignations
- the array which will contain the designated values. The array will be altered and returned by
the function. If null is given, a new array will be created and returned.public int[] cluster(DataSet dataSet, ExecutorService threadpool, int[] designations)
Clusterer
dataSet
- the data set to perform clustering onthreadpool
- a source of threads to run tasksdesignations
- the array which will contain the designated values. The array will be altered and returned by
the function. If null is given, a new array will be created and returned.public int[] getClusterDesignations(int[] designations, int clusters)
designations
- the array to store the assignments inclusters
- the number of clusters desired#hasStoredClustering()
public List<List<DataPoint>> getClusterDesignations(int clusters, DataSet data)
clusters
- the number of clusters desireddata
- #hasStoredClustering()
public int[] cluster(DataSet dataSet, int clusters, ExecutorService threadpool, int[] designations)
public int[] cluster(DataSet dataSet, int clusters, int[] designations)
public int[] cluster(DataSet dataSet, int lowK, int highK, ExecutorService threadpool, int[] designations)
public int[] cluster(DataSet dataSet, int lowK, int highK, int[] designations)
Copyright © 2017. All rights reserved.