-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmetrics.h
executable file
·51 lines (37 loc) · 987 Bytes
/
metrics.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef METRICS_H
#define METRICS_H
#include <vector>
#include <algorithm>
#include "datatypes.h"
struct metricStruct
{
string name;
metricType type;
vector<unsigned int> baselinePoints;
//metric position along the spectrum
unsigned int band;
//number of bands for metrics that incorporate several (mean, centroid)
unsigned int bandwidth;
//visualization
_precision scaleLow;
_precision scaleHigh;
//id of the reference metric
int reference;
//minimum reference value that sets the normalized value to zero
_precision refEpsilon;
//gpu data
_precision* gpuMetric;
metricStruct()
{
name = "metric";
type = metricMean;
band = 0;
bandwidth = 1;
reference = -1;
refEpsilon = (_precision)0.001;
scaleLow = 0;
scaleHigh = 1;
gpuMetric = NULL;
}
};
#endif