Skip to main content

estimate_associations

Function estimate_associations 

Source
pub fn estimate_associations<'a, 'data>(
    request: AssociationRequest,
    hypotheses: &[AssociationHypothesis],
    evidence: &'a [AssociationEvidence<'data>],
    dependence: DependenceAssumption,
    model: &impl CalibratedAssociationModel,
    authority: &mut impl AssociationAuthority,
    output: &mut [Option<AssociationEstimate<'a, 'data>>],
) -> Result<usize, AssociationError>
Expand description

Fixed stack scratch and deterministic group-ID order. Every failure leaves the entire caller output unchanged; success writes only the returned prefix. The host authority must serialize revocation against Evaluate/Publish if its policy requires stronger atomicity than these two checks can provide.