T-test statistical testing. More...
#include <sts_ttest.h>
Static Public Member Functions | |
| static StatsTtestResult | oneSample (const Eigen::MatrixXd &data, double mu=0.0, StatsTailType tail=StatsTailType::Both) |
| static StatsTtestResult | paired (const Eigen::MatrixXd &dataA, const Eigen::MatrixXd &dataB, StatsTailType tail=StatsTailType::Both) |
| static StatsTtestResult | independent (const Eigen::MatrixXd &dataA, const Eigen::MatrixXd &dataB, StatsTailType tail=StatsTailType::Both) |
| static double | tCdf (double t, int df) |
| static double | regularizedBeta (double x, double a, double b) |
T-test statistical testing.
Provides t-test implementations: one-sample, paired, and independent two-sample.
Definition at line 74 of file sts_ttest.h.
|
static |
Independent two-sample t-test.
| [in] | dataA | Matrix of observations for group A (rows = observations, cols = variables). |
| [in] | dataB | Matrix of observations for group B (same number of columns as dataA). |
| [in] | tail | Tail type for the test. |
Definition at line 94 of file sts_ttest.cpp.
|
static |
One-sample t-test. Each column of data is tested against mu.
| [in] | data | Matrix of observations (rows = observations, cols = variables). |
| [in] | mu | Hypothesized mean (default 0.0). |
| [in] | tail | Tail type for the test. |
Definition at line 55 of file sts_ttest.cpp.
|
static |
Paired t-test. Tests dataA - dataB against 0.
| [in] | dataA | Matrix of observations for condition A. |
| [in] | dataB | Matrix of observations for condition B (same dimensions as dataA). |
| [in] | tail | Tail type for the test. |
Definition at line 87 of file sts_ttest.cpp.
|
static |
Regularized incomplete beta function I_x(a, b). Public because it is also used by StatsFtest.
Definition at line 162 of file sts_ttest.cpp.
|
static |
Compute the CDF of the t-distribution using the regularized incomplete beta function.
| [in] | t | The t-value. |
| [in] | df | Degrees of freedom. |
Definition at line 130 of file sts_ttest.cpp.