Public Member Functions | |
QTimingAnalyzer () | |
Constructor. | |
virtual | ~QTimingAnalyzer () |
Destructor. | |
void | AddValue (const double value) |
Add a time value to the list of values. | |
void | ComputeGoodnessThreshold (const double falseRate) |
Compute goodness threshold at given false positive rate. | |
void | FindPeriod (const double uncertainty, const double stepSize=0.008) |
Find period by searching within 'uncertainty' of fPeriod. | |
unsigned int | GetBestGoodness () |
Get best goodness parameter for the values in fValues. | |
unsigned int | GetGoodness (const double value) |
Get goodness for a given time, using adjustments. | |
unsigned int | GetGoodnessParameter (const double value) |
Get goodness for a given time value, no adjustments. | |
unsigned int | GetGoodnessThreshold () const |
Get goodness threshold at given false positive rate. | |
double | GetPeriod () const |
Get period. | |
unsigned int | GetTotalGoodness () |
Get total goodness for the values in fValues. | |
void | SetAdjustments (const std::vector< double > &adjustments) |
Set adjustments. | |
void | SetExpectedPeriod (const double period) |
Set period for repetition of values. | |
void | SetTolerance (const double tolerance) |
Set size of window in which to look for event. | |
Private Member Functions | |
double | DistanceToClosestElement (const double value, double &closestValue) |
Computes distance from 'value' to closest element in fValues. | |
Private Attributes | |
std::vector< double > | fAdjustments |
Adjustments. | |
unsigned int | fGoodnessThreshold |
Goodness threshold at a certain false positive rate. | |
bool | fNeedsSort |
Whether or not vector could be out of order. | |
double | fPeriod |
Period for repetition of values. | |
double | fTolerance |
Size of window in which to look for event. | |
std::vector< double > | fValues |
Time values. |