Step and Smooth Decompositions as Topological Clustering