+
+ //find means
+ float meanStartPosition, meanEndPosition, meanSeqLength, meanAmbigBases, meanLongHomoPolymer;
+ meanStartPosition = 0; meanEndPosition = 0; meanSeqLength = 0; meanAmbigBases = 0; meanLongHomoPolymer = 0;
+ for (int i = 0; i < size; i++) {
+ meanStartPosition += startPosition[i];
+ meanEndPosition += endPosition[i];
+ meanSeqLength += seqLength[i];
+ meanAmbigBases += ambigBases[i];
+ meanLongHomoPolymer += longHomoPolymer[i];
+ }
+ //this is an int divide so the remainder is lost
+ meanStartPosition /= (float) size; meanEndPosition /= (float) size; meanLongHomoPolymer /= (float) size; meanSeqLength /= (float) size; meanAmbigBases /= (float) size;