T - item typepublic class BernoulliCellSampler<T> extends Object implements RandomSampler<T,T>
param: lb lower bound of the acceptance range param: ub upper bound of the acceptance range param: complement whether to use the complement of the range specified, default to false
| Constructor and Description | 
|---|
| BernoulliCellSampler(double lb,
                    double ub,
                    boolean complement) | 
| Modifier and Type | Method and Description | 
|---|---|
| BernoulliCellSampler<T> | clone()return a copy of the RandomSampler object | 
| BernoulliCellSampler<T> | cloneComplement()Return a sampler that is the complement of the range specified of the current sampler. | 
| int | sample()Whether to sample the next item or not. | 
| void | setSeed(long seed)Set random seed. | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsamplepublic BernoulliCellSampler(double lb,
                            double ub,
                            boolean complement)
public void setSeed(long seed)
PseudorandomsetSeed in interface Pseudorandompublic int sample()
RandomSamplersample in interface RandomSampler<T,T>public BernoulliCellSampler<T> cloneComplement()
public BernoulliCellSampler<T> clone()
RandomSamplerclone in interface RandomSampler<T,T>clone in class Object