-
- if (parameter == "single") {//stores estimators in a vector
- singleEsimators.clear(); //clears out old values
- globaldata->splitAtDash(value, singleEsimators);
- for (int i = 0; i < singleEsimators.size(); i++) { //loop through estimators
- //is it a valid calculator
- if (validCalculator->isValidCalculator(parameter, singleEsimators[i]) != true) { return false; }
- }
- }
- if (parameter == "rarefaction") {//stores estimators in a vector
- rareEstimators.clear(); //clears out old values
- globaldata->splitAtDash(value, rareEstimators);
- for (int i = 0; i < rareEstimators.size(); i++) { //loop through estimators
- //is it a valid calculator
- if (validCalculator->isValidCalculator(parameter, rareEstimators[i]) != true) { return false; }
- }
- }
- if (parameter == "shared") {//stores estimators in a vector
- sharedEstimators.clear(); //clears out old values
- globaldata->splitAtDash(value, sharedEstimators);
- for (int i = 0; i < sharedEstimators.size(); i++) { //loop through estimators
- //is it a valid calculator
- if (validCalculator->isValidCalculator(parameter, sharedEstimators[i]) != true) { return false; }
- }
- }
- if (parameter == "summary") { //stores summaries to be used in a vector
- summaryEstimators.clear(); //clears out old values
- globaldata->splitAtDash(value, summaryEstimators);
- for (int i = 0; i < summaryEstimators.size(); i++) { //loop through estimators
- //is it a valid calculator
- if (validCalculator->isValidCalculator(parameter, summaryEstimators[i]) != true) { return false; }
- }
- }
- if (parameter == "sharedrarefaction") { //stores summaries to be used in a vector
- sharedRareEstimators.clear(); //clears out old values
- globaldata->splitAtDash(value, sharedRareEstimators);
- for (int i = 0; i < sharedRareEstimators.size(); i++) { //loop through estimators
- //is it a valid calculator
- if (validCalculator->isValidCalculator(parameter, sharedRareEstimators[i]) != true) { return false; }
- }
- }