mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-22 15:06:47 +01:00
21 lines
554 B
C++
21 lines
554 B
C++
//
|
|
// HypothesisTesting.cpp
|
|
//
|
|
// Created by Marc Melikyan on 3/10/21.
|
|
//
|
|
|
|
#include "hypothesis_testing.h"
|
|
|
|
std::tuple<bool, real_t> MLPPHypothesisTesting::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];
|
|
//}
|
|
|
|
return std::tuple<bool, real_t>();
|
|
}
|
|
|
|
void MLPPHypothesisTesting::_bind_methods() {
|
|
}
|