[081fbe]: src / modules / glm / samplers / ConjugateFSampler.h  Maximize  Restore  History

Download this file

48 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
#ifndef CONJUGATE_F_SAMPLER_H_
#define CONJUGATE_F_SAMPLER_H_
#include <sampler/Sampler.h>
namespace glm {
class ConjugateFMethod;
/**
* @short Sampler for precision parameter of random effects
*
* The Conjugate F method requires two GraphView objects, instead of
* the usual single GraphView, as it works on hierarchical models.
*
* @see ConjugateFMethod
*/
class ConjugateFSampler : public Sampler
{
GraphView *_gv2;
std::vector<ConjugateFMethod*> _methods;
public:
ConjugateFSampler(GraphView *gv1, GraphView *gv2,
std::vector<ConjugateFMethod*> const &methods);
~ConjugateFSampler();
void update(std::vector<RNG*> const &rngs);
/**
* Returns false. This is not an adaptive sampler
*/
bool isAdaptive() const;
/**
* Does nothing. This is not an adaptive sampler
*/
void adaptOff();
/**
* Returns true. This is not an adaptive sampler.
*/
bool checkAdaptation() const;
/**
* Returns "conjugateF"
*/
std::string name() const;
};
}
#endif /* CONJUGATE_F_SAMPLER_H_ */

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks