O
- Object type@Title(value="Ranking Quality Histogram") @Description(value="Evaluates the effectiveness of a distance function via the obtained rankings.") public class RankingQualityHistogram<O> extends AbstractDistanceBasedAlgorithm<O,CollectionResult<double[]>>
Modifier and Type | Class and Description |
---|---|
static class |
RankingQualityHistogram.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
protected int |
numbins
Number of bins to use.
|
ALGORITHM_ID
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
RankingQualityHistogram(DistanceFunction<? super O> distanceFunction,
int numbins)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
HistogramResult |
run(Database database,
Relation<O> relation)
Process a database
|
getDistanceFunction
run
private static final Logging LOG
protected int numbins
public RankingQualityHistogram(DistanceFunction<? super O> distanceFunction, int numbins)
distanceFunction
- Distance function to evaluatenumbins
- Number of binspublic HistogramResult run(Database database, Relation<O> relation)
database
- Database to processrelation
- Relation to processpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<CollectionResult<double[]>>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<CollectionResult<double[]>>
Copyright © 2019 ELKI Development Team. License information.