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 Summary
Modifier and TypeMethodDescriptionvoid
Aligns (corrects) probabilities of a given agent.double @NonNull []
getProbability
(T agent) Returns a discrete probability distribution for a given agent.
-
Method Details
-
getProbability
Returns a discrete probability distribution for a given agent.- Parameters:
agent
- An agent object.- Returns:
- a linear array of
double
with probabilities, always notnull
. - Throws:
NullPointerException
- whenagent
isnull
.
-
align
Aligns (corrects) probabilities of a given agent.- Parameters:
agent
- An agent for correction.alignedProbability
- Probabilities that replace old values.- Throws:
NullPointerException
- whenagent
, oralignedProbability
, or both arenull
.
-