Class SBDAlignment<T>

java.lang.Object
microsim.alignment.probability.AbstractProbabilityAlignment<T>
microsim.alignment.probability.SBDAlignment<T>

public class SBDAlignment<T> extends AbstractProbabilityAlignment<T>
  • Constructor Details

    • SBDAlignment

      public SBDAlignment()
  • Method Details

    • align

      public void align(Collection<T> agents, org.apache.commons.collections4.Predicate<T> filter, AlignmentProbabilityClosure<T> closure, double targetShare)
      Description copied from class: AbstractProbabilityAlignment
      Method to implement alignment.
      Specified by:
      align in class AbstractProbabilityAlignment<T>
      Parameters:
      agents - - a collection of agents to potentially be aligned
      filter - - filters the agentList so that only the relevant sub-population of agents is aligned
      closure - - specifies the method returning the unaligned probability of the positive outcome for the agent and the method that samples the aligned probabilities to specify the outcome.
      targetShare - - a target share of the relevant sub-population (specified as a proportion of the filtered population) for which the outcome (defined by the AlignmentProbabilityClosure) must be true.