Learning Pedestrian Trajectories with Kernels