pub fn sample_structural_with_overlay(
view: &ModelView<'_>,
n_rows: usize,
rng: &mut CausalRng,
ws: &mut MechanismWorkspace,
) -> Result<(ValueBatch, Vec<f64>), ModelError>Expand description
Structural path: sample noise then evaluate with overlays applied post-hoc for hard sets.
ยงErrors
Mechanism failures, or an overlay with a node both hard-set and shifted
(see InterventionOverlay::validate).