added dynamic filtering radius (as in arXiv:0802.2470)