2023-01-24 18:57:18 +01:00
|
|
|
|
|
|
|
#ifndef MLPP_HYPOTHESIS_TESTING_H
|
|
|
|
#define MLPP_HYPOTHESIS_TESTING_H
|
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
//
|
|
|
|
// HypothesisTesting.hpp
|
|
|
|
//
|
|
|
|
// Created by Marc Melikyan on 3/10/21.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <tuple>
|
2023-01-24 19:00:54 +01:00
|
|
|
#include <vector>
|
|
|
|
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-25 00:25:18 +01:00
|
|
|
class MLPPHypothesisTesting {
|
2023-01-24 19:00:54 +01:00
|
|
|
public:
|
|
|
|
std::tuple<bool, double> chiSquareTest(std::vector<double> observed, std::vector<double> expected);
|
2023-01-23 21:13:26 +01:00
|
|
|
|
2023-01-24 19:00:54 +01:00
|
|
|
private:
|
|
|
|
};
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
|
|
|
|
#endif /* HypothesisTesting_hpp */
|