ec.util
Interface RandomChoiceChooser

All Known Implementing Classes:
BreedingSource

public interface RandomChoiceChooser

Used by RandomChoice to pick objects by probability from a distribution.


Method Summary
 float getProbability(java.lang.Object obj)
          Returns obj's probability
 void setProbability(java.lang.Object obj, float prob)
          Sets obj's probability
 

Method Detail

getProbability

public float getProbability(java.lang.Object obj)
Returns obj's probability

setProbability

public void setProbability(java.lang.Object obj,
                           float prob)
Sets obj's probability