Online Goal Recognition in Discrete and Continuous Domains Using a Vectorial Representation