[1991be]: src / include / graph / ConstantDataNode.h  Maximize  Restore  History

Download this file

42 lines (32 with data), 1.0 kB

 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 CONSTANT_DATA_NODE_H_
#define CONSTANT_DATA_NODE_H_
#include <graph/ConstantNode.h>
namespace jags {
/**
* @short Top-level Node representing data
*
* Constant data nodes are implicit constants that appear only on the
* right hand side of a relation, and whose values are defined by
* user-supplied data. They are considered to represent observed
* random variables.
*/
class ConstantDataNode : public ConstantNode {
public:
/**
* Constructs a scalar constant node and sets its value. The value
* is fixed and is shared between all chains.
*/
ConstantDataNode(double value, unsigned int nchain);
/**
* Constructs a multi-dimensional constant node
*/
ConstantDataNode(std::vector<unsigned int> const &dim,
std::vector<double> const &value,
unsigned int nchain);
/**
* A ConstantDataNode is an observed random variable.
*/
RVStatus randomVariableStatus() const;
};
} /* namespace jags */
#endif /* CONSTANT_DATA_NODE_H_ */

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

Sign up for the SourceForge newsletter:





No, thanks