function trajs = CS4640_smooth_traj(traj)
%

num_pts = length(traj(:,1));

for p = 1:num_pts
    p_min = max(1,p-10);
    p_max = min(num_pts,p+10);
    trajs(p,1) = median(traj(p_min:p_max,1));
    trajs(p,2) = median(traj(p_min:p_max,2));
end
