Imported from https://github.com/gorkamunoz/RF-Single-Trajectory-Characterization