RandomTools/flavor/distribution - Help

RandomTools Flavor: distribution

describe a flavor of a specific distribution

 Calling Sequence distribution(distr)

Parameters

 distr - Name of the distribution to be used. Valid Maple statistical distributions and their corresponding syntax are listed in the Statistics/Distributions help page.

Description

 • The flavor distribution describes a random value from a particular distribution.
 This flavor can be used as an argument to RandomTools[Generate] or as part of a structured flavor.

Examples

 > $\mathrm{with}\left(\mathrm{RandomTools}\right):$
 > $\mathrm{Generate}\left(\mathrm{distribution}\left(\mathrm{Poisson}\left(2\right)\right)\right)$
 ${3.}$ (1)
 > $\mathrm{Generate}\left(\mathrm{list}\left(\mathrm{distribution}\left(\mathrm{Poisson}\left(2\right)\right),10\right)\right)$
 $\left[{3.}{,}{1.}{,}{3.}{,}{1.}{,}{0.}{,}{3.}{,}{2.}{,}{4.}{,}{1.}{,}{1.}\right]$ (2)
 > $\mathrm{Matrix}\left(3,3,\mathrm{Generate}\left(\mathrm{distribution}\left(\mathrm{Normal}\left(10,2.5\right)\right),\mathrm{makeproc}=\mathrm{true}\right)\right)$
 $\left[\begin{array}{ccc}{8.16852560808889}& {7.38865922783647}& {6.58843570048564}\\ {11.9356221957790}& {7.22537119479783}& {11.7180645666045}\\ {8.12871111021642}& {10.1544604916680}& {12.8309115987526}\end{array}\right]$ (3)