15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

prb = generic.cdf(x,)<br />

>>> h=plt.semilogy(np.abs(x-generic.ppf(prb,))+1e-20)<br />

Random number generation<br />

>>> R = generic.rvs(,size=100)<br />

Methods<br />

generic.rvs(,loc=0,scale=1,size=1)<br />

generic.pdf(x,,loc=0,scale=1)<br />

generic.cdf(x,,loc=0,scale=1)<br />

generic.sf(x,,loc=0,scale=1)<br />

generic.ppf(q,,loc=0,scale=1)<br />

generic.isf(q,,loc=0,scale=1)<br />

generic.stats(,loc=0,scale=1,moments=’mv’)<br />

generic.entropy(,loc=0,scale=1)<br />

generic.fit(data,,loc=0,scale=1)<br />

Alternatively, the object may be called (as a<br />

function) to fix the shape,<br />

location, and scale parameters returning a<br />

“frozen” continuous RV object:<br />

rv = generic(,loc=0,scale=1)<br />

pdf(x, *args, **kwds)<br />

Probability density function at x of the given RV.<br />

Parameters<br />

x : array-like<br />

quantiles<br />

arg1, arg2, arg3,... : array-like<br />

SciPy Reference Guide, Release 0.8.dev<br />

•random variates<br />

•probability density function<br />

•cumulative density function<br />

•survival function (1-cdf — sometimes more accurate)<br />

•percent point function (inverse of cdf — percentiles)<br />

•inverse survival function (inverse of sf)<br />

•mean(‘m’), variance(‘v’), skew(‘s’), and/or kurtosis(‘k’)<br />

•(differential) entropy of the RV.<br />

•Parameter estimates for generic data<br />

•frozen RV object with the same methods but holding the<br />

given shape, location, and scale fixed<br />

3.18. Statistical functions (<strong>scipy</strong>.stats) 449

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!