[e23e50]: src / modules / bugs / samplers / ConjugateBeta.h  Maximize  Restore  History

Download this file

31 lines (23 with data), 789 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
#ifndef CONJUGATE_BETA_H_
#define CONJUGATE_BETA_H_
#include "ConjugateMethod.h"
namespace jags {
class Graph;
namespace bugs {
/**
* @short Conjugate sampler for the beta distribution
*
* A conjugate beta sampler can be created for a Stochastic node
* "snode" if its children within the graph are all stochastic nodes
* with either a binomial or a Bernoulli distribution with snode as
* the probability parameter. In the case of binomial children, the
* sample size parameter must not depend on snode.
*/
class ConjugateBeta : public ConjugateMethod {
public:
ConjugateBeta(SingletonGraphView const *gv);
void update(unsigned int chain, RNG *rng) const;
static bool canSample(StochasticNode *snode, Graph const &graph);
};
}}
#endif /* CONJUGATE_BETA_H_ */

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

Sign up for the SourceForge newsletter:





No, thanks