jsat.clustering
Class CLARA
- java.lang.Object
-
- jsat.clustering.PAM
-
- jsat.clustering.CLARA
-
- All Implemented Interfaces:
- java.io.Serializable, Clusterer, KClusterer
public class CLARA extends PAM
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description CLARA()CLARA(CLARA toCopy)Copy constructorCLARA(DistanceMetric dm)CLARA(DistanceMetric dm, java.util.Random rand)CLARA(DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)CLARA(int sampleCount, DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)CLARA(int sampleSize, int sampleCount, DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CLARAclone()intgetSampleCount()intgetSampleSize()voidsetSampleCount(int sampleCount)Sets the number of timesPAMwill be applied to different samples from the data set.voidsetSampleSize(int sampleSize)Sets the number of samples CLARA should take from the data set to performPAMon.-
Methods inherited from class jsat.clustering.PAM
cluster, cluster, cluster, getDistanceMetric, getMaxIterations, getMedoids, getSeedSelection, medoid, medoid, setDistanceMetric, setMaxIterations, setSeedSelection, setStoreMedoids
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.clustering.KClusterer
cluster, cluster, cluster, cluster, cluster, cluster
-
Methods inherited from interface jsat.clustering.Clusterer
cluster, cluster, cluster, supportsWeightedData
-
-
-
-
Constructor Detail
-
CLARA
public CLARA(int sampleSize, int sampleCount, DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)
-
CLARA
public CLARA(int sampleCount, DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)
-
CLARA
public CLARA(DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)
-
CLARA
public CLARA(DistanceMetric dm, java.util.Random rand)
-
CLARA
public CLARA(DistanceMetric dm)
-
CLARA
public CLARA()
-
CLARA
public CLARA(CLARA toCopy)
Copy constructor- Parameters:
toCopy- the object to copy
-
-
Method Detail
-
getSampleCount
public int getSampleCount()
- Returns:
- the number of times
PAMwill be applied to a sample from the data set.
-
setSampleCount
public void setSampleCount(int sampleCount)
Sets the number of timesPAMwill be applied to different samples from the data set.- Parameters:
sampleCount- the number of times to apply sampeling.
-
getSampleSize
public int getSampleSize()
- Returns:
- the number of samples that will be taken to perform
PAMon.
-
setSampleSize
public void setSampleSize(int sampleSize)
Sets the number of samples CLARA should take from the data set to performPAMon.- Parameters:
sampleSize- the number of samples to take
-
-
DataMelt 3.0 © DataMelt by jWork.ORG