
public class RandomSamplingStreamFilter extends AbstractStreamFilter
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomSamplingStreamFilter.Parameterizer
Parameterization class
|
BundleStreamSource.Event| Modifier and Type | Field and Description |
|---|---|
protected double |
prob
Probability
|
protected Random |
random
Random generator
|
source| Constructor and Description |
|---|
RandomSamplingStreamFilter(double prob,
RandomFactory rnd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
data(int rnum)
Access a particular object and representation.
|
BundleMeta |
getMeta()
Get the current meta data.
|
BundleStreamSource.Event |
nextEvent()
Get the next event
|
filter, initprotected double prob
protected Random random
public RandomSamplingStreamFilter(double prob,
RandomFactory rnd)
prob - Probabilityrnd - Random generatorpublic BundleMeta getMeta()
BundleStreamSourcepublic Object data(int rnum)
BundleStreamSourcernum - Representation numberpublic BundleStreamSource.Event nextEvent()
BundleStreamSource