SciPy.org SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17

A Generic continuous random variable.

Continuous random variables are defined from a standard form chosen for simplicity of representation. The standard form may require some shape parameters to complete its specification. The distributions also take optional location and scale parameters using loc= and scale= keywords (defaults: loc=0, scale=1)

These shape, scale, and location parameters can be passed to any of the methods of the RV object such as the following:

generic.rvs(<shape(s)>,loc=0,scale=1)
  • random variates
generic.pdf(x,<shape(s)>,loc=0,scale=1)
  • probability density function
generic.cdf(x,<shape(s)>,loc=0,scale=1)
  • cumulative density function
generic.sf(x,<shape(s)>,loc=0,scale=1)
  • survival function (1-cdf --- sometimes more accurate)
generic.ppf(q,<shape(s)>,loc=0,scale=1)
  • percent point function (inverse of cdf --- percentiles)
generic.isf(q,<shape(s)>,loc=0,scale=1)
  • inverse survival function (inverse of sf)
generic.stats(<shape(s)>,loc=0,scale=1,moments='mv')
  • mean('m',axis=0), variance('v'), skew('s'), and/or kurtosis('k')
generic.entropy(<shape(s)>,loc=0,scale=1)
  • (differential) entropy of the RV.
Alternatively, the object may be called (as a function) to fix
the shape, location, and scale parameters returning a "frozen" continuous RV object:
myrv = generic(<shape(s)>,loc=0,scale=1)
  • frozen RV object with the same methods but holding the

    given shape, location, and scale fixed

Method summary

Methods