Package ec.util
Interface RandomChoiceChooser
public interface RandomChoiceChooser
Used by RandomChoice to pick objects by probability from a distribution.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getProbability
(Object obj) Returns obj's probabilityvoid
setProbability
(Object obj, float prob) Sets obj's probability
-
Method Details
-
getProbability
Returns obj's probability -
setProbability
Sets obj's probability
-