m-YoC / Brunner_Munzel_CPP

C++ header only library of statistical tests; Brunner Munzel & Welch t.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brunner_Munzel_CPP

C++ header only library of statistical tests; Brunner Munzel & Welch t.
comments of header are written in Japanese, sorry.

Usage

/* 2 datasets */  
std::vector<double> x = { 1,2,1,1,1,1,1,1,1,1,2,4,1,1 };  
std::vector<double> y = { 3,3,4,3,1,2,3,1,1,5,4 };

/* brunner munzel test */  
test::test_base<double>& res1 = test::brunner_munzel<double>(x, y);  
printf("g: %lf, l:%lf, b:%lf\n", res1.pvalue_greater(), res1.pvalue_less(), res1.pvalue_both());

/* welch t test */  
test::test_base<double>& res2 = test::welch_t<double>(x, y);  
printf("g: %lf, l:%lf, b:%lf\n", res2.pvalue_greater(), res2.pvalue_less(), res2.pvalue_both());

About

C++ header only library of statistical tests; Brunner Munzel & Welch t.

License:MIT License


Languages

Language:C++ 100.0%