Update boost version requirement for Linux
This commit is contained in:
parent
cab8e14b2d
commit
ce66483b65
@ -35,7 +35,7 @@ option(CODE_COVERAGE "Collect coverage from test library" OFF)
|
|||||||
set(Boost_USE_STATIC_LIBS OFF)
|
set(Boost_USE_STATIC_LIBS OFF)
|
||||||
set(Boost_USE_MULTITHREADED ON)
|
set(Boost_USE_MULTITHREADED ON)
|
||||||
set(Boost_USE_STATIC_RUNTIME OFF)
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
||||||
find_package(Boost 1.81.0 REQUIRED)
|
find_package(Boost 1.78.0 REQUIRED)
|
||||||
if(Boost_FOUND)
|
if(Boost_FOUND)
|
||||||
message("Boost_INCLUDE_DIRS=${Boost_INCLUDE_DIRS}")
|
message("Boost_INCLUDE_DIRS=${Boost_INCLUDE_DIRS}")
|
||||||
include_directories(${Boost_INCLUDE_DIRS})
|
include_directories(${Boost_INCLUDE_DIRS})
|
||||||
|
@ -239,7 +239,7 @@ namespace platform {
|
|||||||
}
|
}
|
||||||
cout << Colors::BLUE() << endl;
|
cout << Colors::BLUE() << endl;
|
||||||
cout << "*************************************************************************************" << endl;
|
cout << "*************************************************************************************" << endl;
|
||||||
cout << "Friedman test: H0: 'There is no significant differences between all the classifiers.'" << endl;
|
cout << Colors::GREEN() << "Friedman test: H0: 'There is no significant differences between all the classifiers.'" << Colors::BLUE() << endl;
|
||||||
for (const auto& rank : ranks) {
|
for (const auto& rank : ranks) {
|
||||||
sum += rank.second;
|
sum += rank.second;
|
||||||
}
|
}
|
||||||
@ -255,7 +255,7 @@ namespace platform {
|
|||||||
long double p_value = (long double)1.0 - cdf(chiSquared, friedmanQ);
|
long double p_value = (long double)1.0 - cdf(chiSquared, friedmanQ);
|
||||||
double criticalValue = quantile(chiSquared, 1 - significance);
|
double criticalValue = quantile(chiSquared, 1 - significance);
|
||||||
std::cout << "Critical Chi-Square Value for df=" << fixed << (int)degreesOfFreedom
|
std::cout << "Critical Chi-Square Value for df=" << fixed << (int)degreesOfFreedom
|
||||||
<< " and alpha=" << significance << ": " << criticalValue << std::endl;
|
<< " and alpha=" << setprecision(2) << fixed << significance << ": " << setprecision(7) << scientific << criticalValue << std::endl;
|
||||||
cout << "p-value: " << scientific << p_value << endl;
|
cout << "p-value: " << scientific << p_value << endl;
|
||||||
if (friedmanQ > criticalValue) {
|
if (friedmanQ > criticalValue) {
|
||||||
cout << Colors::MAGENTA() << "The null hypothesis H0 is rejected." << endl;
|
cout << Colors::MAGENTA() << "The null hypothesis H0 is rejected." << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user