Comparison of Persistent Homologies for Vector Functions: from continuous to discrete and back