NUM_REFERENCE_DATA_SETS, DEFAULT_NUM_REFERENCE_DATA_SETS));
int numIterations = maxClusters - startSize;
String criterion = props.getProperty(METHOD_PROPERTY, DEFAULT_METHOD);
verbose("Transforming the original data set");
Transform tfidf = new TfIdfDocStripedTransform();
Transform rowMag = new RowMagnitudeTransform();
m = rowMag.transform(tfidf.transform(m));
verbose("Generating the reference data set");
// Generate the reference data sets.
ReferenceDataGenerator generator = new ReferenceDataGenerator(m);
Matrix[] gapMatrices = new Matrix[numGaps];
for (int i = 0; i < numGaps; ++i)
gapMatrices[i] = rowMag.transform(tfidf.transform(
generator.generateTestData()));
double[] gapResults = new double[numIterations];
double[] gapStds = new double[numIterations];
Assignments[] gapAssignments = new Assignments[numIterations];