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.

Methods<br />

truncnorm.rvs(a,b,loc=0,scale=1,size=1)<br />

truncnorm.pdf(x,a,b,loc=0,scale=1)<br />

truncnorm.cdf(x,a,b,loc=0,scale=1)<br />

truncnorm.sf(x,a,b,loc=0,scale=1)<br />

truncnorm.ppf(q,a,b,loc=0,scale=1)<br />

truncnorm.isf(q,a,b,loc=0,scale=1)<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 />

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

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

truncnorm.entropy(a,b,loc=0,scale=1)<br />

truncnorm.fit(data,a,b,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 = truncnorm(a,b,loc=0,scale=1)<br />

tukeylambda<br />

A Tukey-Lambda continuous random variable.<br />

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

•Parameter estimates for truncnorm data<br />

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

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

Continuous random variables are defined from a standard form and may require some shape parameters to<br />

complete its specification. Any optional keyword parameters can be passed to the methods of the RV object as<br />

given below:<br />

Parameters<br />

x : array-like<br />

quantiles<br />

q : array-like<br />

lower or upper tail probability<br />

lam : array-like<br />

shape parameters<br />

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

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

Saved successfully!

Ooh no, something went wrong!