-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.hpp
49 lines (34 loc) · 806 Bytes
/
data.hpp
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
#ifndef __DATA__H__
#define __DATA__H__
#include <vector>
#include <string>
#include <utility>
#include <ostream>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_01.hpp>
#include "maths.hpp"
typedef boost::mt19937 PRNG;
typedef boost::uniform_01<> RandomDist;
struct GaussModel;
struct Nuclei : std::vector<Vec3d> {
void updateMinMax();
double xmax;
double xmin;
double ymax;
double ymin;
double zmax;
double zmin;
};
struct Vals : std::vector<double> {
void updateMinMax();
double max;
double min;
};
struct Dataset {
Nuclei nuclei;
Vals vals;
};
typedef std::pair<Nuclei,Vals> pairNucVals;
void loadData(const std::string& filename,Dataset* dataset);
void toSketch3d(std::ostream& out,Dataset* dataset);
#endif