/usr/include/JAGS/sampler/Linear.h is in jags 4.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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | #ifndef LINEAR_H_
#define LINEAR_H_
#include<vector>
namespace jags {
class GraphView;
class SingletonGraphView;
class Graph;
class StochasticNode;
/**
* Helper function to check additivity. The function returns true if
* all deterministic descendants within the given SingletonGraphView
* are additive functions of the sampled node.
*
* @param gv GraphView to be tested.
*
* @param fixed Boolean flag. If true, the function checks for
* additive functions with a fixed intercept.
*
* @see Node#isClosed
*/
bool checkAdditive(SingletonGraphView const *gv, bool fixed);
/**
* Helper function to check additivity. The function returns true if
* all deterministic descendants of the nodes within the graph are
* additive functions.
*
* @param snodes Vector of nodes to be tested.
*
* @param graph Enclosing graph for gv
*
* @param fixed Boolean flag. If true, the function checks for
* additive functions with a fixed intercept.
*
* @see Node#isClosed
*/
bool checkAdditive(std::vector<StochasticNode*> const &snodes,
Graph const &graph, bool fixed);
/**
* Helper function to check linearity. The function returns true if
* all deterministic descendants within the given GraphView are linear
* functions.
*
* @param gv GraphView to be tested.
*
* @param fixed Boolean flag. If true, the function checks for fixed
* linear functions.
*
* @param link Boolean flag. If true, then the function tests for a
* generalized linear model, allowing the last deterministic
* descendants (i.e. those with no deterministic children) to be link
* functions.
*
* @see Node#isClosed
*/
bool checkLinear(GraphView const *gv, bool fixed, bool link=false);
/**
* Helper function to check for scale transformations. The function
* returns true if all deterministic children within the given
* GraphView are scale transformations or scale-mixture
* transformations.
*
* @param gv GraphView to be tested.
*
* @param fixed Boolean flag. If true, the function checks for fixed
* scale transformations.
*
* @see Node#isClosed
*/
bool checkScale(GraphView const *gv, bool fixed);
/**
* Helper function to check for power transformations. The function
* returns true if all deterministic descendants of the given node
* (within the given graph) are power transformations.
*
* @param gv GraphView to be tested.
*
* @param fixed Boolean flag. If true, the function checks for fixed
* power transformations.
*
* @see Node#isClosed
*/
bool checkPower(GraphView const *gv, bool fixed);
} /* namespace jags */
#endif /* LINEAR_H_ */
|