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

Download this file

29 lines (21 with data), 638 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
#ifndef DIRICHLET_METROPOLIS_H_
#define DIRICHLET_METROPOLIS_H_
#include <sampler/RWMetropolis.h>
namespace jags {
class GraphView;
namespace bugs {
class DirchMetropolis : public RWMetropolis
{
GraphView const *_gv;
unsigned int _chain;
double _s;
public:
DirchMetropolis(GraphView const *gv, unsigned int chain);
void getValue(std::vector<double> &x) const;
void setValue(std::vector<double> const &x);
void step(std::vector<double> &x, double size, RNG *rng) const;
double logJacobian(std::vector<double> const &x) const;
double logDensity() const;
};
}}
#endif /* DIRICHLET_METROPOLIS_H_ */

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

Sign up for the SourceForge newsletter:





No, thanks