/usr/include/JAGS/graph/VSLogicalNode.h is in jags 3.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 V_SCALAR_LOGICAL_NODE_H_
#define V_SCALAR_LOGICAL_NODE_H_
#include <graph/LogicalNode.h>
#include <vector>
class ScalarFunction;
/**
* @short Vectorized node using a scalar function
*
* A VSLogicalNode is a logical node that uses a ScalarFunction as
* the defining function. The node is vectorized.
*/
class VSLogicalNode : public LogicalNode {
ScalarFunction const * const _func;
std::vector<bool> _isvector;
public:
/**
* A scalar logical node is defined by a scalar function (which
* may be an inline operator in the BUGS language) and its
* parameters.
*/
VSLogicalNode(ScalarFunction const *func,
std::vector<Node const*> const ¶meters);
/**
* Calculates the value of the node based on the parameters.
*/
void deterministicSample(unsigned int chain);
/**
* @see ScalarFunction#checkParameterValue.
*/
bool checkParentValues(unsigned int chain) const;
DeterministicNode *clone(std::vector<Node const *> const &parents) const;
};
#endif /* V_SCALAR_LOGICAL_NODE_H_ */
|