-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompareData.h
More file actions
45 lines (31 loc) · 743 Bytes
/
CompareData.h
File metadata and controls
45 lines (31 loc) · 743 Bytes
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
#ifndef COMPARE_DATA_H
#define COMPARE_DATA_H
#include <cstdlib>
#include <vector>
#include <math.h>
#include <iostream>
class Compare_Data{
public:
Compare_Data();
~Compare_Data() {;}
Compare_Data(std::vector<std::string> *o)
{output_content = o;}
double lsf(const bool d);
double covariance();
void setDataArrayOne(std::vector<float> one, int a, int b)
{dataOne = one; m = a; n = b;}
void setDataArrayTwo(std::vector<float> two)
{dataTwo = two;}
void setCount(int a)
{count = a;}
std::vector<float> getLSFDifference();
private:
std::vector<std::string> *output_content;
std::vector<float> dataOne;
std::vector<float> dataTwo;
std::vector<float> difference;
int m;
int n;
int count;
};
#endif