docs: protected DoubleDBIDList computeDistanceVector(NumberVector refPoint, Relation<? extends NumberVector> database, PrimitiveDistanceQuery<? super NumberVector> distFunc) {
      ModifiableDoubleDBIDList referenceDists = DBIDUtil.newDistanceDBIDList(database.size());
      for(DBIDIter iditer = database.iterDBIDs(); iditer.valid(); iditer.advance()) {
        referenceDists.add(distFunc.distance(iditer, refPoint), iditer);
      }
      referenceDists.sort();
      return referenceDists;
    }