Package microsim.alignment.probability
Class SBDLAlignment<T>
java.lang.Object
microsim.alignment.probability.AbstractProbabilityAlignment<T>
microsim.alignment.probability.SBDLAlignment<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidalign(Collection<T> agents, org.apache.commons.collections4.Predicate<T> filter, AlignmentProbabilityClosure<T> closure, double targetShare) Method to implement alignment.Methods inherited from class microsim.alignment.probability.AbstractProbabilityAlignment
sortByComparator
-
Constructor Details
-
SBDLAlignment
public SBDLAlignment()
-
-
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:AbstractProbabilityAlignmentMethod to implement alignment.- Specified by:
alignin 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.
-