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

Functions

double recall (double kappa, double baserate, double precision)
 
bool valid_combo (double baserate, double precision, double kappa)
 
std::vector< double > regspace (double start, double delta, double end)
 
template<class Rng >
std::size_t sample_one (std::size_t n, Rng &rng)
 
template<class Rng >
int randi (int a, int b, Rng &rng)
 
template<class Rng >
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, long distribution_length=10000)
 
ConfusionMatrix contingency_table (double precision, double recall, int length, double baserate)
 
template<class Rng >
std::vector< int > sample_contingency_table (std::vector< int > cells, int n, Rng &rng)
 
template<class Rng >
ConfusionMatrix hand_contingency_table (const ConfusionMatrix &full, int length, double inflation, Rng &rng)
 
double kappa_ct (const ConfusionMatrix &ct)
 
double arma_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

◆ arma_mean()

double qestats::rho_fast::arma_mean ( const std::vector< double > &  x)
inline

◆ boot_pvalue()

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

◆ contingency_table()

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

◆ generate_kps()

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

◆ hand_contingency_table()

template<class Rng >
ConfusionMatrix qestats::rho_fast::hand_contingency_table ( const ConfusionMatrix &  full,
int  length,
double  inflation,
Rng &  rng 
)

◆ kappa_ct()

double qestats::rho_fast::kappa_ct ( const ConfusionMatrix &  ct)
inline

◆ kappa_precision()

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

◆ randi()

template<class Rng >
int qestats::rho_fast::randi ( int  a,
int  b,
Rng &  rng 
)

◆ recall()

double qestats::rho_fast::recall ( double  kappa,
double  baserate,
double  precision 
)
inline

◆ regspace()

std::vector< double > qestats::rho_fast::regspace ( double  start,
double  delta,
double  end 
)
inline

◆ rho()

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

◆ sample_contingency_table()

template<class Rng >
std::vector< int > qestats::rho_fast::sample_contingency_table ( std::vector< int >  cells,
int  n,
Rng &  rng 
)

◆ sample_one()

template<class Rng >
std::size_t qestats::rho_fast::sample_one ( std::size_t  n,
Rng &  rng 
)

◆ valid_combo()

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