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

Download this file

34 lines (28 with data), 896 Bytes

 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
#ifndef ALBERT_CHIB_GIBBS_FACTORY_H_
#define ALBERT_CHIB_GIBBS_FACTORY_H_
#include "BinaryFactory.h"
namespace jags {
namespace glm {
/**
* @short Factory object for the Albert-Chib sampler with Gibbs sampling
*
* @see AlbertChib
*/
class AlbertChibGibbsFactory : public BinaryFactory
{
public:
AlbertChibGibbsFactory();
/**
* Returns a newly allocated object of class AlbertChib for
* sampling binary GLMs with probit or logistic link. The
* object is constructed with parameter "gibbs" set to true,
* so that updating of the regression parameters is done
* element-wise by Gibbs sampling.
*/
GLMMethod *newBinary(GraphView const *view,
std::vector<SingletonGraphView const *> const &sub_views,
std::vector<Outcome *> const &outcomes,
unsigned int chain) const;
};
}}
#endif /* ALBERT_CHIB_GIBBS_FACTORY_H_ */