swarm.random
Interface BernoulliDistS

All Known Implementing Classes:
BernoulliDistImpl, BernoulliDistCImpl

public interface BernoulliDistS
extends BooleanDistributionS

Bernoulli Distribution . A distribution returning YES with a given probability.


Method Summary
 java.lang.Object setProbability(double p)
          The setProbability: method sets the probability of returning YES.
 
Methods inherited from interface swarm.random.ProbabilityDistributionS
reset, setGenerator, setGenerator$setVirtualGenerator
 

Method Detail

setProbability

public java.lang.Object setProbability(double p)
The setProbability: method sets the probability of returning YES.