libqe-stats
0.1.2
QE C++ library
Loading...
Searching...
No Matches
qestats.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// Master include for the libqe-stats C++ library.
4
//
5
// Public API:
6
//
7
// Metrics — all classification metrics in one struct
8
// ConfusionMatrix — tp, fp, fn, tn proportions
9
// MetricRange — min/max of a metric over the key interval
10
// Interval — lower/mean/upper from a hypergeometric estimate
11
// PsResult — n, power, cost from perfect sampling
12
// BootstrapResult — original metrics + per-metric SE and CI
13
// MetricRangeRow — one row from metrics_range()
14
//
15
// Functions:
16
// metrics_from_cm(cm) → Metrics
17
// calculate_metrics(tp,fp,fn,tn) → Metrics
18
// get_metric(m, name) → double
19
//
20
// phyper(q, K, N_minus_K, n) → double
21
// hyper_range(n_pos,n,N,alpha) → Interval
22
// ps_proportion(x0,x1,N,errors,alpha) → PsResult
23
// ps_kappa(kappa0,baserate,...) → PsResult
24
// metrics_range(tp,fp,fn,tn,N,b1,alpha) → vector<MetricRangeRow>
25
//
26
// range(name1,val1, name2,val2, target) → MetricRange
27
// derive(name1,val1, name2,val2, name3,val3) → Metrics
28
// derive_from_rates(b1, fdr, for_) → Metrics (closed-form fast path)
29
//
30
// bootstrap_metrics(cm,n_sample,...) → BootstrapResult
31
// p_diff(cm1,cm2,n_sample,metric,...) → double
32
// n_diff(cm1,cm2,metric,n_set,...) → int
33
// N_Diff2(cm1,cm2,metric,N,d,alpha) → int
34
// range_est(cm,metric,N,alpha) → MetricRange
35
//
36
// kappa_from_counts(tp,fp,fn,tn) → double (rhoR's calcKappa)
37
// rho(kappa,baserate,n,opts,rng) → double (rhoR's rhoK; Standard / Fast)
38
39
#include "
metrics.hpp
"
40
#include "
inference.hpp
"
41
#include "
derivation.hpp
"
42
#include "
comparison.hpp
"
43
#include "
rho.hpp
"
comparison.hpp
derivation.hpp
inference.hpp
metrics.hpp
rho.hpp
include
qestats
qestats.hpp
Generated by
1.9.8