libqe-stats 0.1.2
QE C++ library
Loading...
Searching...
No Matches
qestats::rho_standard Namespace Reference

Functions

QESTATS_R_ARITHMETIC_FN double recall (double kappa, double baserate, double precision)
 
QESTATS_R_ARITHMETIC_FN bool valid_combo (double baserate, double precision, double kappa)
 
QESTATS_R_ARITHMETIC_FN std::vector< double > seq (double from, double to, int n)
 
template<class Rng >
std::vector< std::size_t > sample_int (std::size_t n, std::size_t k, Rng &rng)
 
template<class Rng >
QESTATS_R_ARITHMETIC_FN KappaPrecision kappa_precision (const std::vector< double > &kappas, const std::vector< double > &precisions, double baserate, Rng &rng)
 
template<class Rng >
std::vector< KappaPrecision > generate_kps (int n, double baserate, double kappa_min, double kappa_max, double precision_min, double precision_max, Rng &rng)
 
QESTATS_R_ARITHMETIC_FN ConfusionMatrix contingency_table (double precision, double recall, int length, double baserate)
 
template<class Rng >
QESTATS_R_ARITHMETIC_FN double hand_kappa (const ConfusionMatrix &full, int length, double inflation, Rng &rng)
 
double r_mean (const std::vector< double > &x)
 
double boot_pvalue (const std::vector< double > &distribution, double observed)
 
template<class Rng >
double rho (double observed_kappa, double baserate, int test_set_length, const std::vector< KappaPrecision > &kps, const RhoOptions &opts, Rng &rng)
 

Function Documentation

◆ boot_pvalue()

double qestats::rho_standard::boot_pvalue ( const std::vector< double > &  distribution,
double  observed 
)
inline

◆ contingency_table()

QESTATS_R_ARITHMETIC_FN ConfusionMatrix qestats::rho_standard::contingency_table ( double  precision,
double  recall,
int  length,
double  baserate 
)
inline

◆ generate_kps()

template<class Rng >
std::vector< KappaPrecision > qestats::rho_standard::generate_kps ( int  n,
double  baserate,
double  kappa_min,
double  kappa_max,
double  precision_min,
double  precision_max,
Rng &  rng 
)

◆ hand_kappa()

template<class Rng >
QESTATS_R_ARITHMETIC_FN double qestats::rho_standard::hand_kappa ( const ConfusionMatrix &  full,
int  length,
double  inflation,
Rng &  rng 
)

◆ kappa_precision()

template<class Rng >
QESTATS_R_ARITHMETIC_FN KappaPrecision qestats::rho_standard::kappa_precision ( const std::vector< double > &  kappas,
const std::vector< double > &  precisions,
double  baserate,
Rng &  rng 
)

◆ r_mean()

double qestats::rho_standard::r_mean ( const std::vector< double > &  x)
inline

◆ recall()

QESTATS_R_ARITHMETIC_FN double qestats::rho_standard::recall ( double  kappa,
double  baserate,
double  precision 
)
inline

◆ rho()

template<class Rng >
double qestats::rho_standard::rho ( double  observed_kappa,
double  baserate,
int  test_set_length,
const std::vector< KappaPrecision > &  kps,
const RhoOptions &  opts,
Rng &  rng 
)

◆ sample_int()

template<class Rng >
std::vector< std::size_t > qestats::rho_standard::sample_int ( std::size_t  n,
std::size_t  k,
Rng &  rng 
)

◆ seq()

QESTATS_R_ARITHMETIC_FN std::vector< double > qestats::rho_standard::seq ( double  from,
double  to,
int  n 
)
inline

◆ valid_combo()

QESTATS_R_ARITHMETIC_FN bool qestats::rho_standard::valid_combo ( double  baserate,
double  precision,
double  kappa 
)
inline