fixes

similarity now uses relative deviation from curvature-means