Newer
Older
/* glimGls.h
Mark Woolrich, FMRIB Image Analysis Group
Copyright (C) 1999-2000 University of Oxford */
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include <iostream>
#include <fstream>
#define WANT_STREAM
#define WANT_MATH
#include "newmatap.h"
#include "newmatio.h"
#include "Volume.h"
#include "VolumeSeries.h"
#ifndef NO_NAMESPACE
using namespace NEWMAT;
using namespace TACO;
namespace SIGPROC {
#endif
#if !defined(__glimgls_h)
#define __glimgls_h
#define BATCHSIZE 50
class GlimGls
{
public:
GlimGls(const int pnumTS, const int psizeTS, const int pnumParams) :
numTS(pnumTS),
sizeTS(psizeTS),
numParams(pnumParams),
corrections(numTS, numParams*numParams),
b(numParams, numTS),
sigmaSquareds(numTS),
dof(sizeTS - numParams)
{}
void setData(const ColumnVector& p_y, const Matrix& p_x, const int ind);
void Save(const VolumeSeries::Dims& pdims, const ColumnVector& prethreshpos);
private:
void SetCorrection(const Matrix& corr, const int ind);
GlimGls(const GlimGls&);
GlimGls& operator=(const GlimGls& p_glimgls);
int numTS;
int sizeTS;
int numParams;
// Data to be saved:
Matrix corrections;
Matrix b;
Volume sigmaSquareds;
float dof;
};
#ifndef NO_NAMESPACE
}
#endif
#endif