define_retra function

Define representative trajectories from trajectory features