ds_delta function

Compute Delta Index