Package com.actelion.research.chem
Class Clusterer<T>
- java.lang.Object
-
- com.actelion.research.calc.DataProcessor
-
- com.actelion.research.chem.Clusterer<T>
-
public class Clusterer<T> extends DataProcessor
-
-
Constructor Summary
Constructors Constructor Description Clusterer(DescriptorHandler<T,?> descriptorHandler, T[] descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcluster(double similarityLimit, int clusterCountLimit)Defines the criteria for stopping the clustering.intgetClusterCount()intgetClusterNo(int compound)floatgetSimilarity(int index1, int index2)booleanisRepresentative(int compound)voidregenerateClusterNos()Renumber cluster numbers starting at 1 to eliminate unused numbers.-
Methods inherited from class com.actelion.research.calc.DataProcessor
addProgressListener, removeProgressListener, setThreadMaster, setVerbose, startProgress, stopProgress, threadMustDie, updateProgress
-
-
-
-
Constructor Detail
-
Clusterer
public Clusterer(DescriptorHandler<T,?> descriptorHandler, T[] descriptor)
-
-
Method Detail
-
cluster
public void cluster(double similarityLimit, int clusterCountLimit)Defines the criteria for stopping the clustering. At least one of the two limits must be in the applicable valid range.- Parameters:
similarityLimit- >0...<=1.0 or 0.0 if not appliedclusterCountLimit- >=2...objectCount or -1 if not applied
-
isRepresentative
public boolean isRepresentative(int compound)
-
getClusterNo
public int getClusterNo(int compound)
-
getClusterCount
public int getClusterCount()
-
regenerateClusterNos
public void regenerateClusterNos()
Renumber cluster numbers starting at 1 to eliminate unused numbers.
-
getSimilarity
public float getSimilarity(int index1, int index2)
-
-