public interface RandomSampler<T,U> extends Pseudorandom, scala.Cloneable, scala.Serializable
Modifier and Type | Method and Description |
---|---|
RandomSampler<T,U> |
clone()
return a copy of the RandomSampler object
|
int |
sample()
Whether to sample the next item or not.
|
scala.collection.Iterator<U> |
sample(scala.collection.Iterator<T> items)
take a random sample
|
setSeed
int sample()
RandomSampler<T,U> clone()