LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::sim::VonNeumannResult< T > Struct Template Reference

Outcome of the von Neumann randomness test. More...

#include <line/api/sim/sim_vonneumann.h>

Collaboration diagram for line::sim::VonNeumannResult< T >:

Public Attributes

ratio
 The von Neumann ratio.
double zscore = 0.0
 Standardized statistic (ratio-2)/sd.
double pvalue = 1.0
 Two-sided p-value.
bool reject = false
 True when pvalue < alpha, i.e. randomness is rejected.
std::size_t nobs = 0
 Number of observations b.

Detailed Description

template<class T>
struct line::sim::VonNeumannResult< T >

Outcome of the von Neumann randomness test.

The statistic stays in the working type T; the standardized value and the p-value are doubles because they come out of a normal approximation, see the arithmetic note in sim_types.h.

Definition at line 55 of file sim_vonneumann.h.

Member Data Documentation

◆ nobs

template<class T>
std::size_t line::sim::VonNeumannResult< T >::nobs = 0

Number of observations b.

Definition at line 60 of file sim_vonneumann.h.

Referenced by line::sim::sim_vonneumann().

◆ pvalue

template<class T>
double line::sim::VonNeumannResult< T >::pvalue = 1.0

Two-sided p-value.

Definition at line 58 of file sim_vonneumann.h.

Referenced by line::sim::sim_vonneumann().

◆ ratio

template<class T>
T line::sim::VonNeumannResult< T >::ratio

The von Neumann ratio.

Definition at line 56 of file sim_vonneumann.h.

Referenced by line::sim::sim_vonneumann().

◆ reject

template<class T>
bool line::sim::VonNeumannResult< T >::reject = false

True when pvalue < alpha, i.e. randomness is rejected.

Definition at line 59 of file sim_vonneumann.h.

Referenced by line::sim::sim_vonneumann().

◆ zscore

template<class T>
double line::sim::VonNeumannResult< T >::zscore = 0.0

Standardized statistic (ratio-2)/sd.

Definition at line 57 of file sim_vonneumann.h.

Referenced by line::sim::sim_vonneumann().


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