Computes the distance weights to set a uniform prior on linear distance
distances
weights to provide a flat distance
compute_distance_grid_weights()