ProbabilityDistribution -- Probability Distribution
Description
A process for generating a sequence of random numbers matching the frequencies defined by a specific distribution function. The process is driven by input from a supplied uniform random generator.
+ createWithDefaults: (id <Zone>)aZone The createWithDefaults method creates a distribution object with a default set of seeds and parameters, and its own private generator.
+ create: (id <Zone>)aZonesetGenerator:generator Use this create message if the generator to be attached is a Simple one:
+ create: (id <Zone>)aZonesetGenerator:generatorsetVirtualGenerator: (unsigned)vGen Use this create message if the generator to be attached is a Split one:
+ createBegin: (id <Zone>)aZone
- createEnd
Phase: Setting
- setGenerator:generator Use this message if the generator to be attached is a Simple one:
- setGenerator:generatorsetVirtualGenerator: (unsigned)vGen Use this message if the generator to be attached is a Split one:
- reset The reset method resets the currentCount and other state data.
Phase: Using
- getGenerator The getGenerator method returns the id of the generator.
- (unsigned)getVirtualGenerator The getVirtualGenerator returns the number of the virtual generator used.
- (BOOL)getOptionsInitialized The getOptionsInitialized returns the value of the parameter.
- (unsigned long long int)getCurrentCount The getCurrentCount method returns the count of variates generated.