Interface RelevancyFunction
- All Superinterfaces:
NBLabeledElement
- All Known Implementing Classes:
AveragePrecision,BaseRelevancyFunction,F1,Precision,Recall,ReciprocalRank
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
Fields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(int[] relevant, int[] actual) Return a name which identifies this function in terms of its parameters.voidprependLabels(NBLabeledElement prepend) Methods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description, getLabels
-
Method Details
-
apply
double apply(int[] relevant, int[] actual) -
getUniqueName
String getUniqueName()Return a name which identifies this function in terms of its parameters. This is a temporary work-around until the graphite uniqueness semantics are removed and label set uniqueness works.- Returns:
- A string which can be used to identify if the metric exists yet.
-
prependLabels
-