See: Description
Class | Description |
---|---|
ReservoirSample |
Performs a simple random sample using an in-memory reservoir to produce
a uniformly random sample of a given size.
|
ReservoirSample.Final | |
ReservoirSample.Initial | |
ReservoirSample.Intermediate | |
SampleByKey |
Provides a way of sampling tuples based on certain fields.
|
SimpleRandomSample |
Scalable simple random sampling (ScaSRS).
|
SimpleRandomSample.Final | |
SimpleRandomSample.Initial | |
SimpleRandomSample.Intermediate | |
SimpleRandomSampleWithReplacementElect |
Select the candidate with the smallest score for each position from the candidates
proposed by
SimpleRandomSampleWithReplacementVote . |
SimpleRandomSampleWithReplacementElect.Final | |
SimpleRandomSampleWithReplacementElect.Initial | |
SimpleRandomSampleWithReplacementElect.Intermediate | |
SimpleRandomSampleWithReplacementVote |
Scalable simple random sampling with replacement (ScaSRSWR).
|
WeightedReservoirSample |
Performs a weighted random sample using an in-memory reservoir to produce
a weighted random sample of a given size based on the A-Res algorithm described in
paper.
|
WeightedReservoirSample.Final | |
WeightedReservoirSample.Initial | |
WeightedReservoirSample.Intermediate | |
WeightedSample |
Performs weighted bernoulli sampling on a bag.
|