Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 683 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 683 Bytes

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());