discretized dist feature