Package edu.cmu.tetrad.search
Class TwoStep.Result
java.lang.Object
edu.cmu.tetrad.search.TwoStep.Result
- Enclosing class:
TwoStep
The Result class encapsulates the output of the TwoStep algorithm's search process. It contains the resulting
coefficient matrix and the directed graph representation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.ejml.simple.SimpleMatrixA coefficient matrix representing the relationships between variables in the output of the TwoStep algorithm.final GraphA directed graph representing the relationships between variables as inferred from the coefficient matrix after pruning. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
B
public final org.ejml.simple.SimpleMatrix BA coefficient matrix representing the relationships between variables in the output of the TwoStep algorithm. This matrix is of dimensions p x p, where p is the number of variables being analyzed. Non-zero entries in the matrix typically indicate directional dependencies or interactions between variables. -
graph
A directed graph representing the relationships between variables as inferred from the coefficient matrix after pruning. An edge exists from node j to node i (j -> i) if and only if the pruned coefficient matrix contains a non-zero entry at B[i, j].
-
-
Constructor Details
-
Result
Constructs a Result object that encapsulates the output of the TwoStep algorithm.- Parameters:
B- the coefficient matrix representing the relationships between variables in the output. The matrix is of dimensions p x p, where p is the number of analyzed variables. Non-zero entries indicate directional dependencies or interactions between variables.g- the directed graph representing the relationships between variables after pruning. An edge from node j to node i (j -> i) exists if and only if the pruned coefficient
-