SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
All Classes Files Functions Variables Enumerations Modules Pages
Functions
ompttest.hpp File Reference

Implementation of t-test statistical algorithms as function templates for various SICAK plugins. More...

#include <cmath>
#include <omp.h>
#include "exceptions.hpp"
#include "types_power.hpp"
#include "types_stat.hpp"
Include dependency graph for ompttest.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T , class U >
void UniFoTTestAddTraces (UnivariateContext< T > &c, const PowerTraces< U > &randTraces, const PowerTraces< U > &constTraces)
 Adds given random and constant power traces to the given statistical context. Use zeroed or meaningful UnivariateContext c! More...
 
template<class T >
void UniFoTTestMergeContexts (UnivariateContext< T > &firstAndOut, const UnivariateContext< T > &second)
 Merges two UnivariateContext and leaves the result in first context given. More...
 
template<class T >
void UniFoTTestComputeTValsDegs (const UnivariateContext< T > &c, MatrixType< T > &tValsDegs)
 Computes final t-values and degrees of freedom based on a UnivariateContext given, stores t-vals in first row, d.o.f. in second row of output matrix. More...
 

Detailed Description

Implementation of t-test statistical algorithms as function templates for various SICAK plugins.

Author
Petr Socha
Version
1.0

Function Documentation

◆ UniFoTTestAddTraces()

template<class T , class U >
void UniFoTTestAddTraces ( UnivariateContext< T > &  c,
const PowerTraces< U > &  randTraces,
const PowerTraces< U > &  constTraces 
)

Adds given random and constant power traces to the given statistical context. Use zeroed or meaningful UnivariateContext c!

◆ UniFoTTestComputeTValsDegs()

template<class T >
void UniFoTTestComputeTValsDegs ( const UnivariateContext< T > &  c,
MatrixType< T > &  tValsDegs 
)

Computes final t-values and degrees of freedom based on a UnivariateContext given, stores t-vals in first row, d.o.f. in second row of output matrix.

◆ UniFoTTestMergeContexts()

template<class T >
void UniFoTTestMergeContexts ( UnivariateContext< T > &  firstAndOut,
const UnivariateContext< T > &  second 
)

Merges two UnivariateContext and leaves the result in first context given.