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-02-12 16:19:06 +01:00
|
|
|
#include "core/object/reference.h"
|
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
#include <tuple>
|
2023-01-24 19:00:54 +01:00
|
|
|
#include <vector>
|
|
|
|
|
2023-02-12 16:19:06 +01:00
|
|
|
class MLPPHypothesisTesting : public Reference {
|
|
|
|
GDCLASS(MLPPHypothesisTesting, Reference);
|
2023-01-24 19:20:18 +01:00
|
|
|
|
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-02-12 16:19:06 +01:00
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
2023-01-24 19:00:54 +01:00
|
|
|
};
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
#endif /* HypothesisTesting_hpp */
|