Package microsim.alignment.probability
Interface AlignmentProbabilityClosure<T>
-
public interface AlignmentProbabilityClosure<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
align(T agent, double alignedProbability)
Method specifying the sampling of the aligned probability to determine the outcome for the agent.double
getProbability(T agent)
Returns the unaligned probability of a 'positive' outcome for the agent (the user should define what the positive outcome is; it could be that something happens or does not happen).
-
-
-
Method Detail
-
getProbability
double getProbability(T agent)
Returns the unaligned probability of a 'positive' outcome for the agent (the user should define what the positive outcome is; it could be that something happens or does not happen).- Parameters:
agent
-- Returns:
- the probability of a 'positive' outcome for the agent
-
align
void align(T agent, double alignedProbability)
Method specifying the sampling of the aligned probability to determine the outcome for the agent.- Parameters:
agent
-alignedProbability
-
-
-