effective distance step function and ramp function
implode and explode object distance