T - The type of sample.@Internal public class PoissonSampler<T> extends RandomSampler<T>
emptyIterable, EPSILON| 构造器和说明 |
|---|
PoissonSampler(double fraction)
Create a poisson sampler which can sample elements with replacement.
|
PoissonSampler(double fraction,
long seed)
Create a poisson sampler which can sample elements with replacement.
|
public PoissonSampler(double fraction,
long seed)
fraction - The expected count of each element.seed - Random number generator seed for internal PoissonDistribution.public PoissonSampler(double fraction)
fraction - The expected count of each element.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.