forked from jacyara/GenESyS-Reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HypothesisTester_if.h
44 lines (37 loc) · 1.39 KB
/
HypothesisTester_if.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: HypothesisTester_if.h
* Author: cancian
*
* Created on 23 de Agosto de 2018, 19:04
*/
#ifndef HYPOTHESISTESTER_IF_H
#define HYPOTHESISTESTER_IF_H
#include <string>
/**
* Interface for parametric hypothesis tests based on a datafile.
*/
class HypothesisTester_if {
public:
enum H1Comparition {
LESS_THAN = 1,
EQUAL = 2,
DIFFERENT = 3,
GREATER_THAN = 4
};
public:
/* TODO: all "test" methods should return double p-value, not bool */
virtual bool testAverage(double confidencelevel, double avg, H1Comparition comp) = 0;
virtual bool testProportion(double confidencelevel, double prop, H1Comparition comp) = 0;
virtual bool testVariance(double confidencelevel, double var, H1Comparition comp) = 0;
virtual bool testAverage(double confidencelevel, std::string secondPopulationDataFilename, H1Comparition comp) = 0;
virtual bool testProportion(double confidencelevel, std::string secondPopulationDataFilename, H1Comparition comp) = 0;
virtual bool testVariance(double confidencelevel, std::string secondPopulationDataFilename, H1Comparition comp) = 0;
virtual void setDataFilename(std::string dataFilename) = 0;
virtual std::string getDataFilename() = 0;
};
#endif /* HYPOTHESISTESTER_IF_H */