code: public double getSimilarity(DBIDRef id1, DBIDRef id2) {
      return kernel[idmap.getOffset(id1)][idmap.getOffset(id2)];
    }
docs: Get the kernel similarity for the given objects.
  
  @param id1 First object
  @param id2 Second object
  @return Similarity.