Package microsim.alignment.probability
Class SBDLAlignment<T>
- java.lang.Object
-
- microsim.alignment.probability.AbstractProbabilityAlignment<T>
-
- microsim.alignment.probability.SBDLAlignment<T>
-
public class SBDLAlignment<T> extends AbstractProbabilityAlignment<T>
-
-
Constructor Summary
Constructors Constructor Description SBDLAlignment()
-
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.
-
-
-
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 classAbstractProbabilityAlignment<T>
- Parameters:
agents
- - a collection of agents to potentially be alignedfilter
- - filters the agentList so that only the relevant sub-population of agents is alignedclosure
- - 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.
-
-