CodePlexProject Hosting for Open Source Software

The following distributions are currently supported:

- float
**mean**: gets the mean value of the distribution - float
**entropy**: gets the entropy of the distribution - float
**deviation**: gets the standard deviation of the distribution - float
**variance**: gets the variance of the distribution - float
**sample**: gets a sample value - float[]
**samples**(int count): gets an array with given number of samples

Type instances cannot be created using the new keyword, however the type contains several static constructors:

- distr
**normal**: creates a normal distribution with default properties - distr
**normal**(float mean, float dev): creates a normal distribution with given mean and standard deviation - distr
**normal_variance**(float mean, float variance): creates a normal distribution with given mean and variance - distr
**exp**(float lambda): creates an exponential distribution - distr
**rayleigh**(float scale=1): creates a rayleigh distribution - distr
**erlang**(int shape, float scale): creates an erlang distribution - distr
**uniform**: creates a uniform distribution with range 0..1 - distr
**uniform**(float from, float to): creates a uniform distribution with given range - distr
**uniform**(range rg): creates a uniform distribution with given range

Last edited Mar 17, 2011 at 1:54 PM by impworks, version 1