Package org.apache.spark.util.random
package org.apache.spark.util.random
Utilities for random number generation.
-
ClassDescriptionDeveloper API A sampler based on Bernoulli trials for partitioning a data sequence.Developer API A sampler based on Bernoulli trials.Utility functions that help us determine bounds on adjusted sampling rate to guarantee exact sample size with high confidence when sampling without replacement.Utility functions that help us determine bounds on adjusted sampling rate to guarantee exact sample sizes with high confidence when sampling with replacement.Developer API A sampler for sampling with replacement, based on values drawn from Poisson distribution.Developer API A class with pseudorandom behavior.RandomSampler<T,
U> Developer API A pseudorandom sampler.Auxiliary functions and data structures for the sampleByKey method in PairRDDFunctions.