Package microsim.alignment.multiple
Interface AlignmentMultiProbabilityClosure<T>
- Type Parameters:
- T- A generic type describing an agent.
public interface AlignmentMultiProbabilityClosure<T>
A general interface for alignment procedures with multiple outcomes.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAligns (corrects) probabilities of a given agent.double @NonNull []getProbability(T agent) Returns a discrete probability distribution for a given agent.
- 
Method Details- 
getProbabilityReturns a discrete probability distribution for a given agent.- Parameters:
- agent- An agent object.
- Returns:
- a linear array of doublewith probabilities, always notnull.
- Throws:
- NullPointerException- when- agentis- null.
 
- 
alignAligns (corrects) probabilities of a given agent.- Parameters:
- agent- An agent for correction.
- alignedProbability- Probabilities that replace old values.
- Throws:
- NullPointerException- when- agent, or- alignedProbability, or both are- null.
 
 
-