Finish (untested) function to linear regress mean & stdevs of log-weights against distance.