based on distances to neighbourhood prototypes