| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.util.random.PoissonSampler<T>
public class PoissonSampler<T>
:: DeveloperApi :: A sampler for sampling with replacement, based on values drawn from Poisson distribution.
param: fraction the sampling fraction (with replacement)
| Constructor Summary | |
|---|---|
| PoissonSampler(double fraction,
               scala.reflect.ClassTag<T> evidence$2) | |
| Method Summary | |
|---|---|
|  PoissonSampler<T> | clone()return a copy of the RandomSampler object | 
|  scala.collection.Iterator<T> | sample(scala.collection.Iterator<T> items)take a random sample | 
|  void | setSeed(long seed)Set random seed. | 
| Methods inherited from class Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PoissonSampler(double fraction,
                      scala.reflect.ClassTag<T> evidence$2)
| Method Detail | 
|---|
public void setSeed(long seed)
Pseudorandom
setSeed in interface Pseudorandompublic 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| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||