Class ReciprocalRank

java.lang.Object
io.nosqlbench.engine.extensions.computefunctions.relavency.BaseRelevancyFunction
io.nosqlbench.engine.extensions.computefunctions.relavency.ReciprocalRank
All Implemented Interfaces:
RelevancyFunction, NBLabeledElement

public class ReciprocalRank extends BaseRelevancyFunction
  • Constructor Details

    • ReciprocalRank

      public ReciprocalRank(String name, int k, Map<String,String> labels)
    • ReciprocalRank

      public ReciprocalRank(String name, int k, Object... labels)
  • Method Details

    • apply

      public double apply(int[] relevant, int[] actual)
    • getUniqueName

      public String getUniqueName()
      Description copied from interface: RelevancyFunction
      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.