libqe 0.2.5
QE C++ library
Loading...
Searching...
No Matches
stats.hpp File Reference

Generic statistics: centering, normal/t quantiles, group confidence intervals (t-based and IQR outlier fences), and two-group comparison tests (Welch t-test, Wilcoxon rank-sum). More...

#include <armadillo>
#include <algorithm>
#include <cmath>
#include <limits>
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Classes

struct  qe::GroupStats
 Per-dimension statistics from a two-group comparison. More...
 

Namespaces

namespace  qe
 

Functions

Centering
arma::mat qe::center_points (arma::mat values)
 Subtract column means so that every dimension is centred at the origin.
 
Group confidence intervals
arma::mat qe::mean_ci (const arma::mat &points, double conf_level=0.95)
 Student-t confidence interval for the mean of a group of ENA unit points.
 
arma::mat qe::outlier_ci (const arma::mat &points, double iqr_factor=1.5)
 Tukey-fence outlier interval for a group of ENA unit points.
 
Two-group comparison statistics
GroupStats qe::group_stats (const arma::mat &g1, const arma::mat &g2)
 Compute per-dimension two-group comparison statistics.
 

Detailed Description

Generic statistics: centering, normal/t quantiles, group confidence intervals (t-based and IQR outlier fences), and two-group comparison tests (Welch t-test, Wilcoxon rank-sum).

Split out of the former modeling.hpp; the ENA node-position solvers and ena_correlation() are in rENA's libena (positions.hpp).