jsat.clustering
Class MEDDIT
- java.lang.Object
-
- jsat.clustering.PAM
-
- jsat.clustering.MEDDIT
-
- All Implemented Interfaces:
- java.io.Serializable, Clusterer, KClusterer
public class MEDDIT extends PAM
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MEDDIT()MEDDIT(DistanceMetric dm)MEDDIT(DistanceMetric dm, java.util.Random rand)MEDDIT(DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetTolerance()static intmedoid(boolean parallel, java.util.Collection<java.lang.Integer> indecies, double tol, java.util.List<? extends Vec> X, DistanceMetric dm, java.util.List<java.lang.Double> accel)Computes the medoid of a sub-set of datastatic intmedoid(boolean parallel, java.util.Collection<java.lang.Integer> indecies, java.util.List<? extends Vec> X, DistanceMetric dm, java.util.List<java.lang.Double> accel)Computes the medoid of a sub-set of datastatic intmedoid(boolean parallel, java.util.List<? extends Vec> X, DistanceMetric dm)Computes the medoid of the datastatic intmedoid(boolean parallel, java.util.List<? extends Vec> X, double tol, DistanceMetric dm)Computes the medoid of the datavoidsetTolerance(double tolerance)-
Methods inherited from class jsat.clustering.PAM
clone, cluster, cluster, cluster, getDistanceMetric, getMaxIterations, getMedoids, getSeedSelection, 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
-
MEDDIT
public MEDDIT(DistanceMetric dm, java.util.Random rand, SeedSelectionMethods.SeedSelection seedSelection)
-
MEDDIT
public MEDDIT(DistanceMetric dm, java.util.Random rand)
-
MEDDIT
public MEDDIT(DistanceMetric dm)
-
MEDDIT
public MEDDIT()
-
-
Method Detail
-
setTolerance
public void setTolerance(double tolerance)
-
getTolerance
public double getTolerance()
-
medoid
public static int medoid(boolean parallel, java.util.List<? extends Vec> X, DistanceMetric dm)Computes the medoid of the data- Parameters:
parallel- whether or not the computation should be done using multiple coresX- the list of all datadm- the distance metric to get the medoid with respect to- Returns:
- the index of the point in X that is the medoid
-
medoid
public static int medoid(boolean parallel, java.util.List<? extends Vec> X, double tol, DistanceMetric dm)Computes the medoid of the data- Parameters:
parallel- whether or not the computation should be done using multiple coresX- the list of all datatol-dm- the distance metric to get the medoid with respect to- Returns:
- the index of the point in X that is the medoid
-
medoid
public static int medoid(boolean parallel, java.util.Collection<java.lang.Integer> indecies, java.util.List<? extends Vec> X, DistanceMetric dm, java.util.List<java.lang.Double> accel)Computes the medoid of a sub-set of data- Parameters:
parallel- whether or not the computation should be done using multiple coresindecies- the indexes of the points to get the medoid ofX- the list of all datadm- the distance metric to get the medoid with respect toaccel- the acceleration cache for the distance metric- Returns:
- the index value contained within indecies that is the medoid
-
medoid
public static int medoid(boolean parallel, java.util.Collection<java.lang.Integer> indecies, double tol, java.util.List<? extends Vec> X, DistanceMetric dm, java.util.List<java.lang.Double> accel)Computes the medoid of a sub-set of data- Parameters:
parallel- whether or not the computation should be done using multiple coresindecies- the indexes of the points to get the medoid oftol-X- the list of all datadm- the distance metric to get the medoid with respect toaccel- the acceleration cache for the distance metric- Returns:
- the index value contained within indecies that is the medoid
-
-
DataMelt 3.0 © DataMelt by jWork.ORG