code: public static double evaluateRanking(ScoreEvaluation eval, Cluster<?> clus, DoubleDBIDList ranking) {
      return eval.evaluate(new DBIDsTest(DBIDUtil.ensureSet(clus.getIDs())), new DistanceResultAdapter(ranking.iter()));
    }
docs: Evaluate given a cluster (of positive elements) and a scoring list.
  
  @param eval Evaluation method
  @param clus Cluster object
  @param ranking Object ranking
  @return Score