Package com.bayesserver.causal
Class BackdoorGraph
- java.lang.Object
-
- com.bayesserver.causal.BackdoorGraph
-
public final class BackdoorGraph extends Object
Methods for constructing the Backdoor graph or proper Backdoor graph from a Bayesian network. The proper back-door graph, is obtained from G by removing the first edge of every proper causal path from X to Y.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
convert(Network network, Evidence evidence, Distribution query, BackdoorGraphOptions options)
Constructs the Backdoor graph or the proper Backdoor graph from a Bayesian network, one of more treatments (X) and one or more outcomes (Y).static void
convert(Network network, List<CausalNode> treatments, List<CausalNode> outcomes, BackdoorGraphOptions options)
Constructs the Backdoor graph or the proper Backdoor graph from a Bayesian network, one of more treatments (X) and one or more outcomes (Y).
-
-
-
Method Detail
-
convert
public static void convert(Network network, Evidence evidence, Distribution query, BackdoorGraphOptions options)
Constructs the Backdoor graph or the proper Backdoor graph from a Bayesian network, one of more treatments (X) and one or more outcomes (Y).- Parameters:
network
- The Bayesian network, which will be edited in-place.evidence
- Evidence which contains one or more interventions (treatments X), and optionally other standard (non-intervention) evidence.query
- One or more outcomes (Y).options
- Options for the conversion.
-
convert
public static void convert(Network network, List<CausalNode> treatments, List<CausalNode> outcomes, BackdoorGraphOptions options)
Constructs the Backdoor graph or the proper Backdoor graph from a Bayesian network, one of more treatments (X) and one or more outcomes (Y).- Parameters:
network
- The Bayesian network, which will be edited in place.treatments
- One or more nodes with interventions (do) evidence set.outcomes
- One or more outcomes (Y).options
- Options for the conversion.
-
-