PROLEAD
A Probing-Based Leakage Detection Tool for Hardware and Software
Loading...
Searching...
No Matches
Classes | Functions
Util Namespace Reference

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 &)
 

Detailed Description

Generic functions required for hard- and software evaluations, e.g. all statistical procedures.

Function Documentation

◆ EndClock()

double Util::EndClock ( timespec &  )

◆ GetGValue()

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.

Parameters
NumberOfGroupsNumber of user-defined groups.
NumberOfSimulationsThe number of simulated executions so far.
TableThe contingency table.
FrequencyPrecomputed number of simulations per group.
Returns
gValue The G-value.
Author
Nicolai Müller

◆ GTest()

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.

Parameters
NumberOfGroupsNumber of user-defined groups.
NumberOfSimulationsThe number of simulated executions so far.
TableThe contingency table.
FrequencyPrecomputed number of simulations per group.
TableSizeThe number of entries in a contingency table.
dfThe degree of freedom.
Returns
gValue The G-value.
Author
Nicolai Müller

◆ StartClock()

void Util::StartClock ( timespec &  )