D - The type of data which the internal clusterer can cluster lists ofT - The type of results thepublic class RangedDBSCANClusterEvaluator<D,T extends AnalysisResult> extends Object implements Evaluator<Map<Double,int[][]>,RangedAnalysisResult<Double,T>>
| Constructor and Description |
|---|
RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r,
SparseMatrixDBSCAN gen,
Map<A,? extends List<B>> dataset,
Function<List<B>,SparseMatrix> transform,
ClusterAnalyser<T> analyser) |
RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r,
SparseMatrixDBSCAN gen,
SparseMatrix data,
Function<B,Integer> indexFunc,
Map<A,? extends List<B>> dataset,
ClusterAnalyser<T> analyser) |
RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r,
SparseMatrixDBSCAN gen,
SparseMatrix data,
int[][] clusters,
ClusterAnalyser<T> analyser) |
RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r,
SparseMatrixDBSCAN gen,
SparseMatrix data,
Map<A,? extends List<B>> dataset,
ClusterAnalyser<T> analyser) |
| Modifier and Type | Method and Description |
|---|---|
RangedAnalysisResult<Double,T> |
analyse(Map<Double,int[][]> estimated)
Analyse the raw data produced by a call to
Evaluator.evaluate() and return the analysed data. |
Map<Double,int[][]> |
evaluate()
Run, or evaluate the system, returning the raw data.
|
public RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r, SparseMatrixDBSCAN gen, SparseMatrix data, int[][] clusters, ClusterAnalyser<T> analyser)
r - the range of values for the SparseMatrixDBSCAN eps
valuegen - data - clusters - analyser - public RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r, SparseMatrixDBSCAN gen, SparseMatrix data, Map<A,? extends List<B>> dataset, ClusterAnalyser<T> analyser)
r - the range of values for the SparseMatrixDBSCAN eps
valuegen - data - dataset - extract the elements of this map "in order" and build a ground
truth. very dangerous.analyser - public RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r, SparseMatrixDBSCAN gen, SparseMatrix data, Function<B,Integer> indexFunc, Map<A,? extends List<B>> dataset, ClusterAnalyser<T> analyser)
r - the range of values for the SparseMatrixDBSCAN eps
valuegen - data - indexFunc - given a data instance, return its indexdataset - analyser - public RangedDBSCANClusterEvaluator(UniformDoubleRangeIterable r, SparseMatrixDBSCAN gen, Map<A,? extends List<B>> dataset, Function<List<B>,SparseMatrix> transform, ClusterAnalyser<T> analyser)
r - the range of values for the SparseMatrixDBSCAN eps
valuegen - dataset - transform - turn a list of dataset items into the required type for
clusteringanalyser - public Map<Double,int[][]> evaluate()
Evaluatorevaluate in interface Evaluator<Map<Double,int[][]>,RangedAnalysisResult<Double,T extends AnalysisResult>>public RangedAnalysisResult<Double,T> analyse(Map<Double,int[][]> estimated)
EvaluatorEvaluator.evaluate() and return the analysed data.analyse in interface Evaluator<Map<Double,int[][]>,RangedAnalysisResult<Double,T extends AnalysisResult>>estimated - the raw data.