ec.util
Interface RandomChoiceChooserD


public interface RandomChoiceChooserD

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

Version:
1.0
Author:
Sean Luke

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

Method Detail

getProbability

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


setProbability

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