Class ProbabilisticDataGenerator


  • public class ProbabilisticDataGenerator
    extends Object
    • Method Detail

      • extractRandomElement

        public static <E> E extractRandomElement​(Random random,
                                                 List<E> list)
      • 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)