[Numpy-discussion] weibull distribution has only one parameter?
Robert Kern
robert.kern at gmail.com
Mon Nov 12 04:01:17 EST 2007
D.Hendriks (Dennis) wrote:
> According to (for instance)
> http://en.wikipedia.org/wiki/Weibull_distribution the Weibull
> distribution has two parameters: lambda > 0 is the scale parameter
> (real) and k > 0 is the shape parameter (real). However, the
> numpy.random.weibull function has only a single 'a' parameter (except
> for the size parameter which indicates the size of the array to fill
> with values - this is NOT a parameter of the distribution itself). My
> question is how this 'a' parameter translates to the Weibull
> distribution as it 'normally' is and how to sample the distribution when
> I have the lambda and k parameters?
lambda * numpy.random.weibull(k)
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion
mailing list