-/**************************************************************************************************/
-/*This Class contains methods that return the B Diverstiy of two sets
-of data. The four methods are the Whittaker's measure, the Marczewski-Stainhaus distance,
-the Sorensen quantitative index, and the Morisita-Horn index.
-The main method takes a number of columns of data and performs all 4 methods on each
-combination of columns. It prints a table for every method that shows the B Diverstiy for
-each combination. It also calculates the overall diversity for Whittaker's measure and
-the Marczewski-Steinhaus distance.*/
-
-
-class BDiversity
-{
- public:
- void doBD(vector<double>, double);//Main method
- double getWhitt(vector<double>,vector<double>);//Whittacker's measure
- double getMS(vector<double>, vector<double>);//Marczewski-Stainhaus distance
- double getSor(vector<double>, vector<double>);//Sorensen quantitative index
- double getMor(vector<double>, vector<double>);//Morisita-Horn index
- void printD(vector<vector<double> >, int);//This prints a table that represents the given 2D vector, the second paramter specifies which method is to be used (1 for Whitt, 2 for MS, 3 for Sor, and 4 for Mor)
-};
-