Class RandomSampler<T>
- java.lang.Object
-
- org.apache.flink.api.java.sampling.RandomSampler<T>
-
- Type Parameters:
T- The type of sampler data.
- Direct Known Subclasses:
BernoulliSampler,DistributedRandomSampler,PoissonSampler
@Internal public abstract class RandomSampler<T> extends Object
A data sample is a set of data selected from a statistical population by a defined procedure. RandomSampler helps to create data sample randomly.
-
-
Field Summary
Fields Modifier and Type Field Description protected Iterator<T>emptyIterableprotected static doubleEPSILON
-
Constructor Summary
Constructors Constructor Description RandomSampler()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Iterator<T>sample(Iterator<T> input)Randomly sample the elements from input in sequence, and return the result iterator.
-
-
-
Field Detail
-
EPSILON
protected static final double EPSILON
- See Also:
- Constant Field Values
-
-