Indoor and Outdoor Distance Estimation for Accelerometer-Derived Proximity Data: A Simulation and Machine Learning Study. (May 2017)