swarm.random
Class BernoulliDistImpl
java.lang.Object
|
+--swarm.BaseImpl
|
+--swarm.random.BernoulliDistImpl
- public class BernoulliDistImpl
- extends BaseImpl
- implements BooleanDistribution, BooleanDistributionS, BernoulliDistS, BernoulliDist
Bernoulli Distribution .
A distribution returning YES with a given probability.
Methods implemented by this class for interface swarm.defobj.Drop |
drop |
Methods implemented by this class for interface swarm.defobj.DefinedObject |
compare,
describe,
describeID,
getDisplayName,
getTypeName,
getZone,
perform,
perform$with,
perform$with$with,
perform$with$with$with,
respondsTo,
setDisplayName,
xfprint,
xfprintid,
xprint,
xprintid |
Methods implemented by this class for interface swarm.defobj.GetName |
getName |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BernoulliDistImpl
public BernoulliDistImpl()
BernoulliDistImpl
public BernoulliDistImpl(Zone aZone,
SplitRandomGenerator splitGenerator,
int vGen,
double p)
- Use this create message if the generator to be attached is a Split one:
BernoulliDistImpl
public BernoulliDistImpl(Zone aZone,
SimpleRandomGenerator simpleGenerator,
double p)
- Use this create message if the generator to be attached is a Simple one:
BernoulliDistImpl
public BernoulliDistImpl(Zone aZone,
SimpleRandomGenerator simpleGenerator)
- Use this create message if the generator to be attached is a Simple one:
BernoulliDistImpl
public BernoulliDistImpl(Zone aZone,
SplitRandomGenerator splitGenerator,
int vGen)
- Use this create message if the generator to be attached is a Split one:
BernoulliDistImpl
public BernoulliDistImpl(Zone aZone)
- The createWithDefaults method creates a distribution object with a default set of seeds and parameters, and its own private generator.