[081fbe]: src / modules / glm / samplers / HolmesHeldFactory.h Maximize Restore History

Download this file

HolmesHeldFactory.h    38 lines (32 with data), 928 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
#ifndef HOLMES_HELD_FACTORY_H_
#define HOLMES_HELD_FACTORY_H_
#include "BinaryFactory.h"
namespace glm {
/**
* @short Factory object for the Holmes-Held sampling method
*/
class HolmesHeldFactory : public BinaryFactory
{
public:
HolmesHeldFactory();
/**
* Returns a newly allocated object of class HolmesHeld for
* sampling binary GLMs with probit or logistic link.
*/
BinaryGLM *newBinary(GraphView const *view,
std::vector<GraphView const *> const &sub_views,
unsigned int chain) const;
/**
* Returns true. The Holmes-Held update method requires a
* fixed outcome because the auxiliary variables are updated
* by a reversible transition from their current values.
*/
bool fixedOutcome() const;
/**
* Returns true. The Holmes-Held update method requires a
* fixed design matrix
*/
bool fixedDesign() const;
};
}
#endif /* HOLMES_HELD_FACTORY_H_ */