Bug fix for the calc_ave_dist() method.
The negative of the exponential was being used!
Authored by: bugman 2009-04-15
Parent: [r9012]
Child: [r9014]