| Package | Description |
|---|---|
| ec.util |
| Modifier and Type | Method and Description |
|---|---|
private static int |
RandomChoice.exemptZeroes(Object[] objs,
RandomChoiceChooser chooser,
int index) |
static void |
RandomChoice.organizeDistribution(Object[] objs,
RandomChoiceChooser chooser)
Same as organizeDistribution(objs, chooser, false);
|
static void |
RandomChoice.organizeDistribution(Object[] objs,
RandomChoiceChooser chooser,
boolean allowAllZeros)
Normalizes the probabilities associated
with an array of objects, then converts them into continuing
sums.
|
static int |
RandomChoice.pickFromDistribution(Object[] objs,
RandomChoiceChooser chooser,
float prob)
Picks a random item from an array of objects, each with an
associated probability that is accessed by taking an object
and passing it to chooser.getProbability(obj).
|
static int |
RandomChoice.pickFromDistribution(Object[] objs,
RandomChoiceChooser chooser,
float prob,
int checkboundary)
Deprecated.
|
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.