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

Download this file

31 lines (25 with data), 557 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 AUX_MIX_NORMAL_H_
#define AUX_MIX_NORMAL_H_
#include "AuxMix.h"
namespace glm {
/**
* Normal distribution as a trivial auxiliary mixture
*/
class AuxMixNormal : public AuxMix
{
double const &_tau;
double const &_y;
public:
/**
* Constructor.
*
* @param tau Precision of normal distribution
* @param y Value of normal random variable
*/
AuxMixNormal(double const &tau, double const &y);
void update(RNG *rng);
double value() const;
double precision() const;
};
}
#endif /* AUX_MIX_NORMAL_H_ */

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

Sign up for the SourceForge newsletter:





No, thanks