code: private boolean isLocalMaximum(double kdist, DBIDs neighbors, WritableDoubleDataStore kdists) {
      for(DBIDIter it = neighbors.iter(); it.valid(); it.advance()) {
        if(kdists.doubleValue(it) < kdist) {
          return false;
        }
      }
      return true;
    }
docs: Test if a point is a local density maximum.
  
  @param kdist k-distance of current
  @param neighbors Neighbor points
  @param kdists kNN distances
  @return {@code true} when the point is a local maximum