jsat.clustering
Class DBSCAN
- java.lang.Object
-
- jsat.clustering.ClustererBase
-
- jsat.clustering.DBSCAN
-
- All Implemented Interfaces:
- java.io.Serializable, Clusterer
public class DBSCAN extends ClustererBase
A density-based algorithm for discovering clusters in large spatial databases with noise (1996) by Martin Ester , Hans-peter Kriegel , Jörg S , Xiaowei Xu- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DBSCAN()DBSCAN(DBSCAN toCopy)Copy constructorDBSCAN(DistanceMetric dm)DBSCAN(DistanceMetric dm, VectorCollection<VecPaired<Vec,java.lang.Integer>> vc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DBSCANclone()int[]cluster(DataSet dataSet, boolean parallel, int[] designations)Performs clustering on the given data set.java.util.List<java.util.List<DataPoint>>cluster(DataSet dataSet, double eps, int minPts)java.util.List<java.util.List<DataPoint>>cluster(DataSet dataSet, double eps, int minPts, boolean parallel)int[]cluster(DataSet dataSet, double eps, int minPts, boolean parallel, int[] designations)int[]cluster(DataSet dataSet, double eps, int minPts, int[] designations)java.util.List<java.util.List<DataPoint>>cluster(DataSet dataSet, int minPts)java.util.List<java.util.List<DataPoint>>cluster(DataSet dataSet, int minPts, boolean parallel)int[]cluster(DataSet dataSet, int minPts, boolean parallel, int[] designations)int[]cluster(DataSet dataSet, int minPts, int[] designations)-
Methods inherited from class jsat.clustering.ClustererBase
createClusterListFromAssignmentArray, getDatapointsFromCluster
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.clustering.Clusterer
cluster, cluster, cluster, supportsWeightedData
-
-
-
-
Constructor Detail
-
DBSCAN
public DBSCAN(DistanceMetric dm, VectorCollection<VecPaired<Vec,java.lang.Integer>> vc)
-
DBSCAN
public DBSCAN()
-
DBSCAN
public DBSCAN(DistanceMetric dm)
-
DBSCAN
public DBSCAN(DBSCAN toCopy)
Copy constructor- Parameters:
toCopy- the object to copy
-
-
Method Detail
-
cluster
public int[] cluster(DataSet dataSet, int minPts, int[] designations)
-
cluster
public int[] cluster(DataSet dataSet, boolean parallel, int[] designations)
Description copied from interface:ClustererPerforms clustering on the given data set. Parameters may be estimated by the method, or other heuristics performed.- Parameters:
dataSet- the data set to perform clustering onparallel-trueif multiple threads should be used to perform clustering.falseif it should be done in a single threaded manner.designations- 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.- Returns:
- the int[]
-
clone
public DBSCAN clone()
- Specified by:
clonein interfaceClusterer- Specified by:
clonein classClustererBase
-
cluster
public java.util.List<java.util.List<DataPoint>> cluster(DataSet dataSet, int minPts, boolean parallel)
-
cluster
public int[] cluster(DataSet dataSet, int minPts, boolean parallel, int[] designations)
-
cluster
public java.util.List<java.util.List<DataPoint>> cluster(DataSet dataSet, double eps, int minPts)
-
cluster
public int[] cluster(DataSet dataSet, double eps, int minPts, int[] designations)
-
cluster
public java.util.List<java.util.List<DataPoint>> cluster(DataSet dataSet, double eps, int minPts, boolean parallel)
-
cluster
public int[] cluster(DataSet dataSet, double eps, int minPts, boolean parallel, int[] designations)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG