Class ProbabilisticDataGenerator
- java.lang.Object
-
- org.optaplanner.examples.common.persistence.generator.ProbabilisticDataGenerator
-
public class ProbabilisticDataGenerator extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> EextractRandomElement(Random random, List<E> list)static <E> List<E>extractRandomSubList(Random random, List<E> list, double... thresholds)static <E> List<E>extractRandomSubListOfSize(Random random, List<E> list, int size)static intgenerateRandomIntFromThresholds(Random random, double... thresholds)
-
-
-
Method Detail
-
extractRandomSubList
public static <E> List<E> extractRandomSubList(Random random, List<E> list, double... thresholds)
-
extractRandomSubListOfSize
public static <E> List<E> extractRandomSubListOfSize(Random random, List<E> list, int size)
-
generateRandomIntFromThresholds
public static int generateRandomIntFromThresholds(Random random, double... thresholds)
-
-