Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: randomnumbers.reseed - Function Up: randomnumbers - Tool Previous: randomnumbers.uniform - Function


randomnumbers.weibull - Function



Package utility
Module mathematics
Tool randomnumbers


Generate random numbers with a Weibull distribution


Synopsis
weibull(alpha, beta, shape)


Description
The weibull function will generate numbers that follow a Weibull distribution. I cannot find a mathematical definition of a probability density function that represents the output produced by this function.

Alpha parameter must be a non-zero number and beta can be any value. The result will be floating point numbers in the range 0 < x < $ \infty$. The shape can be either an integer or a vector of integers where all the values are greater than zero. The default value of one will produce a scalar output.



Arguments

alpha in The alpha parameter
    Allowed: double
    Default: 1.0
beta in The beta parameter
    Allowed: double
    Default: 1.0
shape in Shape of the output array
    Allowed: integer or a vector of integers
    Default: 1


Returns
A floating point scalar or array.


Example
      include 'randomnumbers.g'
      rand := randomnumbers();
      numbers := rand.weibull(1.5, 8, 12);
      rand.done()
This example will calculate twelve weibull random numbers, storing the result in a vector.



next up previous contents index
Next: randomnumbers.reseed - Function Up: randomnumbers - Tool Previous: randomnumbers.uniform - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15