I am currently trying (and struggling) to implement a WeightedCorePredicate to implement the weighteddbscan in elki. The modified code of the corepredicate is shown here: