In general, the two aforementioned goals can be regarded as optimizing the precision and recall of the clusters in the learned feature space.
we include two terms in MDF: one which pushes the centers by a margin referred as inter-class term and one which pulls the samples toward their centers referred as intra-class term.