public class AveragePrecisionEvaluation extends AbstractScoreEvaluation
Modifier and Type | Class and Description |
---|---|
static class |
AveragePrecisionEvaluation.Parameterizer
Parameterization class.
|
ScoreEvaluation.Predicate<T>, ScoreEvaluation.ScoreIter
Modifier and Type | Field and Description |
---|---|
static AveragePrecisionEvaluation |
STATIC
Static instance
|
Constructor and Description |
---|
AveragePrecisionEvaluation() |
Modifier and Type | Method and Description |
---|---|
<I extends ScoreEvaluation.ScoreIter> |
evaluate(ScoreEvaluation.Predicate<? super I> predicate,
I iter)
Evaluate a given predicate and iterator.
|
double |
expected(int pos,
int all)
Expected score for a random result.
|
evaluate, evaluate, evaluate
public static final AveragePrecisionEvaluation STATIC
public <I extends ScoreEvaluation.ScoreIter> double evaluate(ScoreEvaluation.Predicate<? super I> predicate, I iter)
ScoreEvaluation
I
- Iterator typepredicate
- Predicate (for positives)iter
- Iteratorpublic double expected(int pos, int all)
ScoreEvaluation
pos
- Number of positive elementsall
- Total number of elementsCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.