Clustering in the Discriminative Functional Subspace