Class SBDAlignment<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      SBDAlignment()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void align​(java.util.Collection<T> agents, org.apache.commons.collections4.Predicate<T> filter, AlignmentProbabilityClosure<T> closure, double targetShare)
      Method to implement alignment.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SBDAlignment

        public SBDAlignment()
    • Method Detail

      • align

        public void align​(java.util.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.