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 Type
    Method
    Description
    void
    align(T agent, double @NonNull [] alignedProbability)
    Aligns (corrects) probabilities of a given agent.
    double @NonNull []
    Returns a discrete probability distribution for a given agent.
  • Method Details

    • getProbability

      double @NonNull [] getProbability(@NonNull T agent)
      Returns a discrete probability distribution for a given agent.
      Parameters:
      agent - An agent object.
      Returns:
      a linear array of double with probabilities, always not null.
      Throws:
      NullPointerException - when agent is null.
    • align

      void align(@NonNull T agent, double @NonNull [] alignedProbability)
      Aligns (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.