Clustering is mostly an unsupervised procedure and most of the clustering algorithms depend on assumptions and initial guesses
in order to define the subgroups presented in a data set. As a consequence, in most applications the final clusters require
some sort of evaluation. The evaluation procedure has to tackle difficult problems, which can be qualitatively expressed as:
i. quality of clusters, ii. the degree with which a clustering scheme fits a specific data set, iii. the optimal number of
clusters in a partitioning. In this paper we present a scheme for finding the optimal partitioning of a data set during the
clustering process regardless of the clustering algorithm used. More specifically, we present an approach for evaluation of
clustering schemes (partitions) so as to find the best number of clusters, which occurs in a specific data set. A clustering
algorithm produces different partitions for different values of the input parameters. The proposed approach selects the best
clustering scheme (i.e., the scheme with the most compact and well-separated clusters), according to a quality index we define.
We verified our approach using two popular clustering algorithms on synthetic and real data sets in order to evaluate its
reliability. Moreover, we study the influence of different clustering parameters to the proposed quality index.