T - type of element to sample@PublicEvolving public abstract class Sampler<T> extends Object
Sampler. It provides
a set of data selected from a statistical population by the defined implementation.
It helps create random samples of data easily.| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T> |
emptyIterable |
protected static double |
EPSILON |
| Constructor and Description |
|---|
Sampler() |
| 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 © 2024 CDAP Licensed under the Apache License, Version 2.0.