PROLEAD
A Probing-Based Leakage Detection Tool for Hardware and Software
|
Classes | |
struct | ContingencyTableStruct |
Defines a contingency table. More... | |
struct | TableEntryStruct |
Defines one entry of a contingency table. More... | |
Functions | |
double | GetGValue (unsigned int, unsigned int, ContingencyTableStruct &, std::vector< double >, unsigned int, unsigned int &) |
Computes the G-value. | |
void | GTest (unsigned int, unsigned int, ContingencyTableStruct &, std::vector< double >) |
Computes the p-value. | |
void | StartClock (timespec &) |
double | EndClock (timespec &) |
Generic functions required for hard- and software evaluations, e.g. all statistical procedures.
double Util::EndClock | ( | timespec & | ) |
double Util::GetGValue | ( | unsigned int | , |
unsigned int | , | ||
ContingencyTableStruct & | , | ||
std::vector< double > | , | ||
unsigned int | , | ||
unsigned int & | |||
) |
Computes the G-value.
Compute the statistical G-value from a given contingency table.
NumberOfGroups | Number of user-defined groups. |
NumberOfSimulations | The number of simulated executions so far. |
Table | The contingency table. |
Frequency | Precomputed number of simulations per group. |
void Util::GTest | ( | unsigned int | , |
unsigned int | , | ||
ContingencyTableStruct & | , | ||
std::vector< double > | |||
) |
Computes the p-value.
Compute the false-positive probability from a given contingency table.
NumberOfGroups | Number of user-defined groups. |
NumberOfSimulations | The number of simulated executions so far. |
Table | The contingency table. |
Frequency | Precomputed number of simulations per group. |
TableSize | The number of entries in a contingency table. |
df | The degree of freedom. |
void Util::StartClock | ( | timespec & | ) |