Class AveragePrecision
java.lang.Object
io.nosqlbench.engine.extensions.computefunctions.relavency.BaseRelevancyFunction
io.nosqlbench.engine.extensions.computefunctions.relavency.AveragePrecision
- All Implemented Interfaces:
RelevancyFunction,NBLabeledElement
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionAveragePrecision(String name, int k, Object... labels) AveragePrecision(String name, int k, Map<String, String> labels) -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(int[] relevant, int[] actual) Return a name which identifies this function in terms of its parameters.Methods inherited from class io.nosqlbench.engine.extensions.computefunctions.relavency.BaseRelevancyFunction
getLabels, getName, prependLabelsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description
-
Constructor Details
-
AveragePrecision
-
AveragePrecision
-
-
Method Details
-
apply
public double apply(int[] relevant, int[] actual) -
getUniqueName
Description copied from interface:RelevancyFunctionReturn 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.
-