[57223f]: src / modules / glm / samplers / AMFactory.h  Maximize  Restore  History

Download this file

41 lines (35 with data), 950 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
34
35
36
37
38
39
40
#ifndef AM_FACTORY_H_
#define AM_FACTORY_H_
#include "GLMFactory.h"
#include "AMMethod.h"
namespace glm {
/**
* @short Factory object for the Auxiliary Mixture update method
*
* @see AMMethod
*/
class AMFactory : public GLMFactory
{
public:
AMFactory();
/**
* Returns true if the outcome has a Poisson distribution with
* log link, or a Binomial distribution with logit link.
*/
bool checkOutcome(StochasticNode const *snode,
LinkNode const *lnode) const;
/**
* Returns true if the node is not bounded
*/
bool canSample(StochasticNode const *snode) const;
/**
* Returns a newly allocated object of class AMMethod for
* sampling Poisson models with log link or binomial models
* with logistic link.
*/
GLMMethod * newMethod(GraphView const *view,
std::vector<GraphView const *> const &sub_views,
unsigned int chain) const;
};
}
#endif /* AM_FACTORY_H_ */

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

Sign up for the SourceForge newsletter:





No, thanks