- vector<float> min;
- vector<string> groups;
-
- //initialize data
- data.resize(dist.size());
- for (int l = 0; l < data.size(); l++) {
- data[l].resize(numGroups);
- for (int k = 0; k < data[l].size(); k++) {
- data[l][k].push_back(0.0);
- }
- }
-
- /**************************************/
- //get the minimums for each comparision
- /**************************************/
- int count = 0;
- int a = 0;
- int b = 0;
- for (int i = 0; i < numGroups; i++) {
- for (int j = 0; j < numGroups; j++) {
-
- //is this "box" one hte user wants analyzed?
- if ((inUsersGroups(globaldata->gGroupmap->namesOfGroups[i], globaldata->Groups) == true) && (inUsersGroups(globaldata->gGroupmap->namesOfGroups[j], globaldata->Groups) == true)) {
-
- if (mode == "random") {
- //create random matrix for this comparison
- matrix->shuffle(globaldata->gGroupmap->namesOfGroups[i], globaldata->gGroupmap->namesOfGroups[j]);
- }
-
- min = matrix->getMins(count); //returns vector of mins for "box" requested ie. groups A, B, 0 = AA, 1 = AB, 2 = BA, 3 = BB;