Package elki.clustering.trivial
Class ByModelClustering
- java.lang.Object
-
- elki.clustering.trivial.ByModelClustering
-
- All Implemented Interfaces:
Algorithm
,ClusteringAlgorithm<Clustering<Model>>
@Title("Clustering by model") @Description("Cluster points by a (pre-assigned!) model. For comparing results with a reference clustering.") @Priority(-105) public class ByModelClustering extends java.lang.Object implements ClusteringAlgorithm<Clustering<Model>>
Pseudo clustering using annotated models.This "algorithm" puts elements into the same cluster when they agree in their model. I.e. it just uses a predefined clustering, and is mostly useful for testing and evaluation (e.g., comparing the result of a real algorithm to the reference result / golden standard used by the generator).
- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ByModelClustering.Par
Parameterization class.-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.regex.Pattern
noisepattern
Pattern to recognize noise clusters with.
-
Constructor Summary
Constructors Constructor Description ByModelClustering()
Constructor without parametersByModelClustering(java.util.regex.Pattern noisepattern)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformation[]
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.Clustering<Model>
run(Relation<Model> relation)
Run the actual clustering algorithm.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.clustering.ClusteringAlgorithm
autorun
-
-
-
-
Method Detail
-
getInputTypeRestriction
public TypeInformation[] getInputTypeRestriction()
Description copied from interface:Algorithm
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in interfaceAlgorithm
- Returns:
- Type restriction
-
run
public Clustering<Model> run(Relation<Model> relation)
Run the actual clustering algorithm.- Parameters:
relation
- The data input we use
-
-