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.
+ create: (id <Zone>)aZonesetGenerator: (id <SimpleRandomGenerator>)simpleGenerator Use this create message if the generator to be attached is a Simple one:
+ create: (id <Zone>)aZonesetGenerator: (id <SplitRandomGenerator>)splitGeneratorsetVirtualGenerator: (unsigned)vGen Use this create message if the generator to be attached is a Split one:
+ createWithDefaults: (id <Zone>)aZone The createWithDefaults method creates a distribution object with a default set of seeds and parameters, and its own private generator.
Phase: Setting
- reset The reset method resets the currentCount and other state data.
- setGenerator: (id <SimpleRandomGenerator>)simpleGenerator Use this message if the generator to be attached is a Simple one:
- setGenerator: (id <SplitRandomGenerator>)splitGeneratorsetVirtualGenerator: (unsigned)vGen Use this message if the generator to be attached is a Split one:
Phase: Using
- (unsigned long long int)getCurrentCount The getCurrentCount method returns the count of variates generated.
- (BOOL)getOptionsInitialized The getOptionsInitialized returns the value of the parameter.
- (unsigned)getVirtualGenerator The getVirtualGenerator returns the number of the virtual generator used.
- (id <BasicRandomGenerator>)getGenerator The getGenerator method returns the id of the generator.