-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjackknife.h
More file actions
39 lines (28 loc) · 918 Bytes
/
Copy pathjackknife.h
File metadata and controls
39 lines (28 loc) · 918 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
#ifndef JACKKNIFE_H
#define JACKKNIFE_H
#include "data.h"
#include "fitmrq.h"
#include "calculations.h"
class Jackknife
{
public:
Jackknife(Data* &data, const std::vector<bool> &_ia);
Jackknife(Data* &data, const std::vector<bool> &_ia, QString _mode);
void compute();
void compute_cpmg();
std::vector<std::vector<double>> a{};
double deviation2{},deviation_kd1{},deviation_kd2{};
private:
void calculate();
void clearVectors();
void writeJackDataSet(int i);
std::vector<double> calcAverageA(double ndata);
std::vector<double> calcError();
void assignErrorsToData(const std::vector<double> &jackError);
Data* dataset;
std::vector<bool> ia{};
QString mode{"standard"};
QVector<double> responce{};
QVector<double> conc{}, protein{}, error{}, volume{}, comp{},r2eff{},n_cpmg{};
};
#endif // JACKKNIFE_H