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.
|
|
|
|
//
|
|
|
|
|
2023-01-27 13:01:16 +01:00
|
|
|
#include "core/math/math_defs.h"
|
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
#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:
|
2023-01-27 13:01:16 +01:00
|
|
|
std::tuple<bool, real_t> chiSquareTest(std::vector<real_t> observed, std::vector<real_t> 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 */
|