org.encog.mathutil.randomize
public class RandomChoice extends Object implements Serializable
Constructor and Description |
---|
RandomChoice(double[] theProbabilities)
Construct a list of probabilities.
|
public RandomChoice(double[] theProbabilities)
theProbabilities
- The probability of each item in the list.public int generate(Random theGenerator)
public int generate(Random theGenerator, int skip)
skip
- The choice to skip.Copyright © 2014. All Rights Reserved.