Package microsim.alignment.probability
Class AbstractProbabilityAlignment<T>
- java.lang.Object
-
- microsim.alignment.probability.AbstractProbabilityAlignment<T>
-
- Type Parameters:
T
- - the Type parameter usually representing the agent class.
- Direct Known Subclasses:
LogitScalingBinaryAlignment
,LogitScalingBinaryWeightedAlignment
,MultiplicativeScalingAlignment
,SBDAlignment
,SBDLAlignment
,SidewalkAlignment
public abstract class AbstractProbabilityAlignment<T> extends java.lang.Object
Abstract class for BINARY PROBABILITY alignment methods (for Binary outcome alignment, see microsim.alignment.outcome package; for Multiple choice probability alignment, see microsim.alignment.multi package). Acknowledgements: Partly based on "Evaluating Binary Alignment Methods in Microsimulation Models", by Jinjing Li and Cathal O'Donoghue, Journal of Artificial Societies and Social Simulation, 2014 (http://jasss.soc.surrey.ac.uk/17/1/15/15.pdf) General principle of operation of this class: a) Some variable is defined for the agents (the variable can be a probability or an outcome). b) Alignment is called to modify that variable, possibly making use of a specific process of the agents. ALIGNMENT OF PROBABILITIES: this requires a process is specified that computes individual probabilities of the occurrence of a given event. Alignment is then called to modify those probabilities. A second process is specified to determine the occurrence of the event given the (modified) probabilities.- Author:
- Matteo Richiardi This version: July 2014
-
-
Constructor Summary
Constructors Constructor Description AbstractProbabilityAlignment()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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 abstract void align(java.util.Collection<T> agents, org.apache.commons.collections4.Predicate<T> filter, AlignmentProbabilityClosure<T> closure, double targetShare)
Method to implement alignment.- 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.
-
-