Documentation Set for Swarm 2.2
Prev | Reference V. Random Library | Next

# Normal

## Name

Normal -- Internal

## Protocols adopted by Normal

DoubleDistribution

## Methods

### Phase: Creating

- + create: (id <Zone>)aZone setGenerator: (id <SplitRandomGenerator>)splitGenerator setVirtualGenerator: (unsigned)vGen setMean: (double)mean setStdDev: (double)sdev
  Use this create message if the generator to be attached is a Split one and you wish to specify the standard deviation:

- + create: (id <Zone>)aZone setGenerator: (id <SplitRandomGenerator>)splitGenerator setVirtualGenerator: (unsigned)vGen setMean: (double)mean setVariance: (double)variance
  Use this create message if the generator to be attached is a Split one and you wish to specify the variance:

- + create: (id <Zone>)aZone setGenerator: (id <SimpleRandomGenerator>)simpleGenerator setMean: (double)mean setStdDev: (double)sdev
  Use this create message if the generator to be attached is a Simple one and you wish to specify the standard deviation:

- + create: (id <Zone>)aZone setGenerator: (id <SimpleRandomGenerator>)simpleGenerator setMean: (double)mean setVariance: (double)variance
  Use this create message if the generator to be attached is a Simple one and you wish to specify the variance:

### Phase: Setting

- - setMean: (double)mean setStdDev: (double)sdev
  The setMean:setStdDev: method sets the mean and the standard deviation of the distribution.

- - setMean: (double)mean setVariance: (double)variance
  The setMean:setVariance: method sets the mean and the variance of the distribution.

### Phase: Using

- - (double)getSampleWithMean: (double)mean withStdDev: (double)sdev
  The getSampleWithMean:withStdDev: method returns a sample value drawn from a distribution with the specified mean and standard deviation.

- - (double)getSampleWithMean: (double)mean withVariance: (double)variance
  The getSampleWithMean:withVariance: method returns a sample value drawn from a distribution with the specified mean and variance.

- - (double)getStdDev
  The getStdDev method returns the standard deviation of the distribution.

- - (double)getVariance
  The getVariance method returns the variance of the distribution.

- - (double)getMean
  The getMean method returns the mean of the distribution.

Prev | Home | Next
MWCBgen | Up | NormalDist