T - The type of sampler data.@Internal public abstract class RandomSampler<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T> |
emptyIterable |
protected static double |
EPSILON |
| Constructor and Description |
|---|
RandomSampler() |
| Modifier and Type | Method and Description |
|---|---|
abstract Iterator<T> |
sample(Iterator<T> input)
Randomly sample the elements from input in sequence, and return the result iterator.
|
protected static final double EPSILON
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.