X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedkstest.cpp;fp=sharedkstest.cpp;h=f65f271abbf39224b6eb052a3d83d2142968d141;hb=c196b6b4768ccb84955d773ff0f22e4994d1ba7b;hp=fefe14f4c192a872d0142cfa81a6a867a10fb32e;hpb=dc08123b7f14e2305e5bb2b3a8fcef96fc829b07;p=mothur.git diff --git a/sharedkstest.cpp b/sharedkstest.cpp index fefe14f..f65f271 100644 --- a/sharedkstest.cpp +++ b/sharedkstest.cpp @@ -13,8 +13,8 @@ EstOutput KSTest::getValues(vector shared){ try { - data.resize(2,0); - + data.resize(3,0); + //Must return shared1 and shared2 to original order at conclusion of kstest vector initData1 = shared[0]->getData(); vector initData2 = shared[1]->getData(); @@ -59,6 +59,8 @@ EstOutput KSTest::getValues(vector 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; }