pub struct SelectionDiagram { /* private fields */ }Expand description
A source/target selection diagram.
selection_targets are causal variables whose generating mechanisms may differ between the
source and target populations. Selection nodes are represented extensionally by their target;
they are not ordinary observed variables and cannot accidentally enter an adjustment set.
Implementations§
Source§impl SelectionDiagram
impl SelectionDiagram
Sourcepub fn try_new(
causal_graph: Admg,
selection_targets: impl Into<Arc<[VariableId]>>,
) -> Result<Self, GraphError>
pub fn try_new( causal_graph: Admg, selection_targets: impl Into<Arc<[VariableId]>>, ) -> Result<Self, GraphError>
Build and validate a selection diagram over a semi-Markovian causal graph.
Sourcepub const fn causal_graph(&self) -> &Admg
pub const fn causal_graph(&self) -> &Admg
Borrow the causal ADMG shared by source and target populations.
Sourcepub fn selection_targets(&self) -> &[VariableId]
pub fn selection_targets(&self) -> &[VariableId]
Variables whose mechanisms are allowed to differ between populations.
Sourcepub fn mechanism_may_differ(&self, variable: VariableId) -> bool
pub fn mechanism_may_differ(&self, variable: VariableId) -> bool
Whether a variable’s mechanism is marked as population-specific.
Trait Implementations§
Source§impl Clone for SelectionDiagram
impl Clone for SelectionDiagram
Source§fn clone(&self) -> SelectionDiagram
fn clone(&self) -> SelectionDiagram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectionDiagram
impl RefUnwindSafe for SelectionDiagram
impl Send for SelectionDiagram
impl Sync for SelectionDiagram
impl Unpin for SelectionDiagram
impl UnsafeUnpin for SelectionDiagram
impl UnwindSafe for SelectionDiagram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more