O
- Object typeD
- Distance type@Title(value="Ranking Quality Histogram") @Description(value="Evaluates the effectiveness of a distance function via the obtained rankings.") public class RankingQualityHistogram<O,D extends NumberDistance<D,?>> extends AbstractDistanceBasedAlgorithm<O,D,CollectionResult<DoubleVector>>
Modifier and Type | Class and Description |
---|---|
static class |
RankingQualityHistogram.Parameterizer<O,D extends NumberDistance<D,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static OptionID |
HISTOGRAM_BINS_ID
Option to configure the number of bins to use.
|
private static Logging |
LOG
The logger for this class.
|
(package private) int |
numbins
Number of bins to use.
|
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
RankingQualityHistogram(DistanceFunction<? super O,D> 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<DoubleVector> |
run(Database database,
Relation<O> relation)
Process a database
|
getDistanceFunction
makeParameterDistanceFunction, run
private static final Logging LOG
public static final OptionID HISTOGRAM_BINS_ID
int numbins
public RankingQualityHistogram(DistanceFunction<? super O,D> distanceFunction, int numbins)
distanceFunction
- Distance function to evaluatenumbins
- Number of binspublic HistogramResult<DoubleVector> 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<DoubleVector>>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<CollectionResult<DoubleVector>>