Option to compute the optimal number of clusters using the inertia parameter or the statistical gap