get_distexp function

Get the expectation of treatment events with arbitrary distances