Interface AlignmentProbabilityClosure<T>


public interface AlignmentProbabilityClosure<T>
  • Method Summary

    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
    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 Details

    • 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 -