[1991be]: src / lib / graph / ConstantDataNode.cc Maximize Restore History

Download this file

ConstantDataNode.cc    26 lines (19 with data), 525 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
#include <config.h>
#include <graph/ConstantDataNode.h>
using std::vector;
namespace jags {
ConstantDataNode::ConstantDataNode(double value, unsigned int nchain)
: ConstantNode(value, nchain)
{
}
ConstantDataNode::ConstantDataNode(vector<unsigned int> const &dim,
vector<double> const &value,
unsigned int nchain)
: ConstantNode(dim, value, nchain)
{
}
RVStatus ConstantDataNode::randomVariableStatus() const
{
return RV_TRUE_OBSERVED;
}
} //namespace jags