A Camel stochastic distribution is a composition of one or more Dromedary distributions. A Dromedary distribution is a composition of two Rectangular distribution, the Hump and the Back. The Hump is placed in the middle the Back placed (halves) on both sides of the Hump.
The Camel distribution is intended to model so called bursty traffic, where the bursts are the humps. Random variates drawn from the distribution can be used in traffic simulations, for examples or in other contexts where bursty behaviour needs to be modelled.
This library provides an implementation of the Camel stochastic distribution, for generating pseudo random numbers drawn from the distribution.
In addition, this library contains a graphical demonstration. An applet demonstrating the distribution can be found here . If the applet cannot be viewed for any reason, the same demo can be run from the command line (or double-clicked).
java -jar CamelDistribution-2.0.jar
Unpack the distribution archive, and put the JAR file (CamelDistribution-2.0.jar ) on your class path. Then use it like this snippet below shows
CamelDistribution camel = new CamelDistribution();
camel.config(lowerBound, upperBound, numHumps, humpMassFraction, humpWidthFraction);
for (...) {
double r = camel.next();
}
| Name | Description |
| lowerBound | Lower bound (on x-axis) of the distribution. |
| upperBound | Upper bound (on x-axis) of the distribution. |
| numHumps | Number of humps. |
| humpMassFraction | The fraction [0, 1] of the probability mass that should be allocated for all humps. |
| humpWidthFraction | The fraction [0, 1] of the total width that should be distributed on all humps. |