libStatGen Software 1
|
This class is a wrapper around an array that has one index per base and an extra index for a total count of all bases. More...
#include <BaseCount.h>
Public Member Functions | |
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). | |
void | printPercent () |
This class is a wrapper around an array that has one index per base and an extra index for a total count of all bases.
This class is used to keep a count of the number of times each index has occurred. It can print a percentage of the occurrence of each base against the total number of bases.
Definition at line 27 of file BaseCount.h.
BaseCount::BaseCount | ( | ) |
Constructor, initializes the array to be all 0s.
Definition at line 23 of file BaseCount.cpp.
bool BaseCount::incrementCount | ( | int | baseIndex | ) |
Update the count for the specified index as well as the overall count (The last index).
Definition at line 38 of file BaseCount.cpp.
void BaseCount::printPercent | ( | ) |
Definition at line 62 of file BaseCount.cpp.