[Numpy-discussion] weibull distribution has only one parameter?

Robert Kern robert.kern@gmail....
Mon Nov 12 03:01:17 CST 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