26 for(
int i = 0; i < myBaseSize; i++)
43 if((baseIndex < myBaseSize-1) && (baseIndex >= 0))
47 myBaseCount[baseIndex]++;
48 myBaseCount[myBaseSize-1]++;
62void BaseCount::printPercent()
66 if(myBaseCount[myBaseSize-1] == 0)
69 std::cout <<
"No Valid Bases found.";
74 for(
int i = 0; i < myBaseSize -1; i++)
77 (myBaseCount[i]/(double)myBaseCount[myBaseSize-1]) * 100;
78 std::cout <<
" " << std::setw(7) << percentage;
81 std::cout <<
"\t" << myBaseCount[myBaseSize-1];
83 std::cout << std::endl;
BaseCount()
Constructor, initializes the array to be all 0s.
bool incrementCount(int baseIndex)
Update the count for the specified index as well as the overall count (The last index).