[01a998]: src / modules / glm / samplers / Linear.h Maximize Restore History

Download this file

Linear.h    26 lines (20 with data), 511 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
#ifndef LINEAR_H_
#define LINEAR_H_
#include "GLMMethod.h"
namespace glm {
/**
* Conjugate sampler for normal linear models.
*/
class Linear : public GLMMethod {
bool _gibbs;
public:
Linear(GraphView const *view,
std::vector<GraphView const *> const &sub_views,
unsigned int chain, bool gibbs);
double getPrecision(unsigned int i) const;
double getValue(unsigned int i) const;
void update(RNG *rng);
std::string name() const;
};
}
#endif /* LINEAR_H_ */