Class RandomSampler

    • Constructor Summary

      Constructors 
      Constructor Description
      RandomSampler()
      Creates a new instance of RandomSampler.
      RandomSampler​(int seed)
      Creates a new instance of RandomSampler with the given seed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<java.lang.Long> sample​(RandomAccessDataset dataset)
      Fetches an iterator that iterates through the indices of the given RandomAccessDataset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomSampler

        public RandomSampler()
        Creates a new instance of RandomSampler.
      • RandomSampler

        public RandomSampler​(int seed)
        Creates a new instance of RandomSampler with the given seed.
        Parameters:
        seed - the value of the seed