-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChi2FitTest.H
33 lines (31 loc) · 926 Bytes
/
Chi2FitTest.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
/***********************************************************************
Chi2FitTest.H
BOOM : Bioinformatics Object Oriented Modules
Copyright (C)2012 William H. Majoros ([email protected]).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
***********************************************************************/
#ifndef INCL_BOOM_Chi2FitTest_H
#define INCL_BOOM_Chi2FitTest_H
using namespace std;
#include "Vector.H"
#include "Chi2Table.H"
namespace BOOM {
class Chi2FitTest
{
public:
Chi2FitTest(BOOM::Vector<int> &observedCounts,
BOOM::Vector<int> &expectedCounts,
BOOM::Chi2Table &);
bool goodFit();
double getChiSquared();
double getP();
private:
double P, chiSquared;
bool fit;
void performTest(BOOM::Vector<int> &observedCounts,
BOOM::Vector<int> &expectedCounts,
BOOM::Chi2Table &);
};
}
#endif