How to Group: From Time Series to Manifold