]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedkstest.cpp
*** empty log message ***
[mothur.git] / sharedkstest.cpp
index fefe14f4c192a872d0142cfa81a6a867a10fb32e..f65f271abbf39224b6eb052a3d83d2142968d141 100644 (file)
@@ -13,8 +13,8 @@
 
 EstOutput KSTest::getValues(vector<SharedRAbundVector*> shared){
        try {
-               data.resize(2,0);
-               
+               data.resize(3,0);
+
                //Must return shared1 and shared2 to original order at conclusion of kstest
                vector <individual> initData1 = shared[0]->getData();
                vector <individual> initData2 = shared[1]->getData();
@@ -59,6 +59,8 @@ EstOutput KSTest::getValues(vector<SharedRAbundVector*> shared){
                
                data[0] = DStatistic;
                data[1] = critVal;
+               data[2] = 0;
+               
                if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
                if (isnan(data[1]) || isinf(data[1])) { data[1] = 0; }