forked from awsirkis/nemoStaticLib2.1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatisticalAnalysis.h
More file actions
59 lines (42 loc) · 1.37 KB
/
Copy pathStatisticalAnalysis.h
File metadata and controls
59 lines (42 loc) · 1.37 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* 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: StatisticalAnalysis.h
* Author: Wooyoung
*
* Created on November 3, 2017, 2:32 PM
*/
#ifndef STATISTICALANALYSIS_H
#define STATISTICALANALYSIS_H
#include "RandomGraphAnalysis.h"
#include <cmath>
using std::pow;
using std::sqrt;
#include <string>
using std::string;
#include <sstream>
using std::stringstream;
#include <iomanip>
using std::setprecision;
class StatisticalAnalysis {
friend ostream& operator<< (ostream&, StatisticalAnalysis&);
public:
StatisticalAnalysis(); // not allowed
StatisticalAnalysis(HASH_MAP<graph64, double>&, HASH_MAP<graph64, vector<double>>& ,int);
virtual ~StatisticalAnalysis();
HASH_MAP<graph64, double> getZScores();
double getZScore(graph64);
double getZScore(graph64, double, double);
HASH_MAP<graph64, double> getPValues();
double getPValue(graph64);
int randGraphCount;
private:
HASH_MAP<graph64, double> targetGraphRelFreqs;
HASH_MAP<graph64, vector<double>> randomGraphRelFreqs;
double calcRandStdDev(graph64, double);
double calcRandMean(graph64);
};
#endif /* STATISTICALANALYSIS_H */