withinsumsq(n, p, B, k)
integer
scalar of the number of rows in the data matrix (where points to cluster are by rows (usually samples)).integer
scalar of the number of columns in the data matrix (where variables are by columns).integer
scalar of the fixed number of clusters.integer
scalar of the number of Monte Carlo replicates of the inner loop of the gap statistic function.numeric
B
-vector of Monte Carlo replicates of within-cluster sum of squares.sim.dis
Similarity Statistic.