Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::StatisticalValidation< T, M > Struct Template Reference

Compare statistical estimate against actual shadow computation Useful for validating the statistical model. More...

#include <tracked_statistical.hpp>

Public Member Functions

void report (std::ostream &os) const

Static Public Member Functions

static StatisticalValidation compute (const TrackedStatistical< T, M > &tracked, T shadow_value)

Public Attributes

T value
T shadow
double actual_error
double estimated_error
double actual_ulps
double estimated_ulps
bool conservative

Detailed Description

template<typename T, ErrorModel M>
struct sw::universal::StatisticalValidation< T, M >

Compare statistical estimate against actual shadow computation Useful for validating the statistical model.

Member Function Documentation

◆ compute()

template<typename T, ErrorModel M>
StatisticalValidation sw::universal::StatisticalValidation< T, M >::compute ( const TrackedStatistical< T, M > & tracked,
T shadow_value )
inlinestatic

◆ report()

template<typename T, ErrorModel M>
void sw::universal::StatisticalValidation< T, M >::report ( std::ostream & os) const
inline

Member Data Documentation

◆ actual_error

template<typename T, ErrorModel M>
double sw::universal::StatisticalValidation< T, M >::actual_error

◆ actual_ulps

template<typename T, ErrorModel M>
double sw::universal::StatisticalValidation< T, M >::actual_ulps

◆ conservative

template<typename T, ErrorModel M>
bool sw::universal::StatisticalValidation< T, M >::conservative

◆ estimated_error

template<typename T, ErrorModel M>
double sw::universal::StatisticalValidation< T, M >::estimated_error

◆ estimated_ulps

template<typename T, ErrorModel M>
double sw::universal::StatisticalValidation< T, M >::estimated_ulps

◆ shadow

template<typename T, ErrorModel M>
T sw::universal::StatisticalValidation< T, M >::shadow

◆ value

template<typename T, ErrorModel M>
T sw::universal::StatisticalValidation< T, M >::value

The documentation for this struct was generated from the following file: