spectral method: compute mix reward function for new traj