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

Download this file

39 lines (33 with data), 892 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
#ifndef LINEAR_FACTORY_H_
#define LINEAR_FACTORY_H_
#include "GLMFactory.h"
namespace jags {
namespace glm {
/**
* @short Factory object for conjugate linear model sampling method
*/
class LinearFactory : public GLMFactory
{
bool _gibbs;
public:
LinearFactory();
/**
* Checks that the outcome is from the normal family with identity
* link
*/
bool checkOutcome(StochasticNode const *snode) const;
/**
* Returns a newly allocated object of class Linear
*/
GLMMethod *newMethod(GraphView const *view,
std::vector<SingletonGraphView const *> const &sub_views,
unsigned int chain) const;
/**
* Checks that the candidate node is not bounded. This is
* required for block-updating from the joint multivariate
* normal posterior.
*/
bool canSample(StochasticNode const *snode) const;
};
}}
#endif /* LINEAR_FACTORY_H_ */

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

Sign up for the SourceForge newsletter:





No, thanks