public class DoubleNNDBSCAN extends DBSCAN implements SpatialClusterer<DoubleDBSCANClusters,double[]>, DataClusterer<double[][],DoubleDBSCANClusters>
DBSCAN.State
noiseAsClusters
Constructor and Description |
---|
DoubleNNDBSCAN(double eps,
int minPts) |
DoubleNNDBSCAN(double eps,
int minPts,
NearestNeighboursFactory<? extends DoubleNearestNeighbours,double[]> nnf)
Perform a DBScane with this configuration
|
Modifier and Type | Method and Description |
---|---|
DoubleDBSCANClusters |
cluster(DataSource<double[]> data)
Perform clustering with data from a data source.
|
DoubleDBSCANClusters |
cluster(double[][] data)
Perform clustering on the given data.
|
double |
getEps() |
int[][] |
performClustering(double[][] data) |
String |
toString() |
setNoiseAsClusters
public DoubleNNDBSCAN(double eps, int minPts, NearestNeighboursFactory<? extends DoubleNearestNeighbours,double[]> nnf)
eps
- minPts
- nnf
- public DoubleNNDBSCAN(double eps, int minPts)
eps
- minPts
- public DoubleDBSCANClusters cluster(double[][] data)
SpatialClusterer
cluster
in interface DataClusterer<double[][],DoubleDBSCANClusters>
cluster
in interface SpatialClusterer<DoubleDBSCANClusters,double[]>
data
- the data.public DoubleDBSCANClusters cluster(DataSource<double[]> data)
SpatialClusterer
DataSource
could potentially be backed by disk rather in memory.cluster
in interface SpatialClusterer<DoubleDBSCANClusters,double[]>
data
- the data.public int[][] performClustering(double[][] data)
performClustering
in interface Clusterer<double[][]>
public double getEps()