X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cooccurrencecommand.cpp;h=ef8c9eddce64e93092df8ed1031b37684f09fe38;hb=006601d68abe8d0061f77e8d28323b160750e343;hp=00de4d6ee612439732207872eba327b8a03f699e;hpb=f687723a8357916e86a05116978e6869b039ce36;p=mothur.git diff --git a/cooccurrencecommand.cpp b/cooccurrencecommand.cpp index 00de4d6..ef8c9ed 100644 --- a/cooccurrencecommand.cpp +++ b/cooccurrencecommand.cpp @@ -321,11 +321,11 @@ int CooccurrenceCommand::getCooccurrence(vector& thisLookUp int nrows = numOTUS;//rows of inital matrix int ncols = thisLookUp.size();//groups double initscore = 0.0; - + vector stats; - double probabilityMatrix[ncols * nrows]; + vector probabilityMatrix; probabilityMatrix.resize(ncols * nrows, 0); vector > nullmatrix(nrows, vector(ncols, 0)); - + TrialSwap2 trial; int n = accumulate( columntotal.begin(), columntotal.end(), 0 );