public class PoissonSampler<T> extends Object implements RandomSampler<T,T>
param: fraction the sampling fraction (with replacement) param: useGapSamplingIfPossible if true, use gap sampling when sampling ratio is low.
Constructor and Description |
---|
PoissonSampler(double fraction,
boolean useGapSamplingIfPossible,
scala.reflect.ClassTag<T> evidence$2) |
PoissonSampler(double fraction,
scala.reflect.ClassTag<T> evidence$3) |
public PoissonSampler(double fraction, boolean useGapSamplingIfPossible, scala.reflect.ClassTag<T> evidence$2)
public PoissonSampler(double fraction, scala.reflect.ClassTag<T> evidence$3)
public void setSeed(long seed)
Pseudorandom
setSeed
in interface Pseudorandom
public scala.collection.Iterator<T> sample(scala.collection.Iterator<T> items)
RandomSampler
sample
in interface RandomSampler<T,T>
public PoissonSampler<T> clone()
RandomSampler
clone
in interface RandomSampler<T,T>
clone
in class Object