public OutlierResult getFastRanking(Relation<V> relation, int k, int sampleSize) {
// Fix a static set of IDs
staticids = DBIDUtil.newArray(relation.getDBIDs());
Collections.sort(staticids);
KernelMatrix kernelMatrix = new KernelMatrix(primitiveKernelFunction, relation, staticids);
PriorityQueue<FCPair<Double, DBID>> pq = new PriorityQueue<FCPair<Double, DBID>>(relation.size(), Collections.reverseOrder());
// get Candidate Ranking
for(DBID aKey : relation.iterDBIDs()) {
HashMap<DBID, Double> dists = new HashMap<DBID, Double>(relation.size());