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

# ExponentialDist

## Name

ExponentialDist -- Exponential distribuiton

## Description

A well-known continuous probability distribution returning doubles.

## Protocols adopted by ExponentialDist

DoubleDistribution CREATABLE

## Methods

### Phase: Creating

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

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

### Phase: Setting

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

### Phase: Using

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

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

Prev | Home | Next
DoubleDistribution | Up | GammaDist