Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[4634c7]: src / modules / glm / samplers / GLMSampler.h Maximize Restore History

Download this file

GLMSampler.h    50 lines (41 with data), 1.1 kB

 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 GLM_SAMPLER_H_
#define GLM_SAMPLER_H_
#include <sampler/ParallelSampler.h>
#include <vector>
namespace jags {
class GraphView;
class SingletonGraphView;
namespace glm {
/**
* @short Base class for GLM samplers.
*/
class GLMSampler : public ParallelSampler
{
std::vector<SingletonGraphView*> _sub_views;
std::vector<SampleMethod*> _methods;
public:
/**
* Constructor.
*
* @param view Pointer to a GraphView object for all sampled nodes.
*
* @param sub_views Vector of pointers to SingletonGraphView
* objects with length equal to the number of sampled
* nodes. Each sub-view corresponds to a single sampled node.
* The GLMSampler object takes ownership of these sub-views
* and deletes them when its destructor is called.
*
* @param methods Vector of sampling methods
*/
GLMSampler(GraphView *view,
std::vector<SingletonGraphView*> const &sub_views,
std::vector<SampleMethod*> const &methods);
/**
* Destructor
*
* Deletes the sub-views passed to the constructor.
*/
~GLMSampler();
};
}}
#endif /* GLM_SAMPLER_H_ */