Fix an another warning.

This commit is contained in:
Relintai 2023-04-16 20:53:33 +02:00
parent 33ac510e6f
commit 0372aac3d3

View File

@ -8,10 +8,10 @@
std::tuple<bool, real_t> MLPPHypothesisTestingOld::chiSquareTest(std::vector<real_t> observed, std::vector<real_t> expected) {
//real_t df = observed.size() - 1; // These are our degrees of freedom
real_t sum = 0;
for (uint32_t i = 0; i < observed.size(); i++) {
sum += (observed[i] - expected[i]) * (observed[i] - expected[i]) / expected[i];
}
//real_t sum = 0;
//for (uint32_t i = 0; i < observed.size(); i++) {
// sum += (observed[i] - expected[i]) * (observed[i] - expected[i]) / expected[i];
//}
return std::tuple<bool, real_t>();
}