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.

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

limits : None or (lower limit, upper limit), optional<br />

Values in the input array less than the lower limit or greater than the upper limit will<br />

be ignored. When limits is None, then all values are used. Either of the limit values<br />

in the tuple can also be None representing a half-open interval. The default value is<br />

None.<br />

inclusive : (bool, bool), optional<br />

Returns<br />

tmean : float<br />

A tuple consisting of the (lower flag, upper flag). These flags determine whether<br />

values exactly equal to the lower or upper limits are included. The default value is<br />

(True, True).<br />

tmin(a, lowerlimit=None, axis=0, inclusive=True)<br />

Compute the trimmed minimum<br />

This function finds the miminum value of an array a along the specified axis, but only considering values greater<br />

than a specified lower limit.<br />

Parameters<br />

a : array_like<br />

array of values<br />

lowerlimit : None or float, optional<br />

Values in the input array less than the given limit will be ignored. When lowerlimit<br />

is None, then all values are used. The default value is None.<br />

axis : None or int, optional<br />

Operate along this axis. None means to use the flattened array and the default is zero<br />

inclusive : {True, False}, optional<br />

Returns<br />

tmin: float :<br />

This flag determines whether values exactly equal to the lower limit are included.<br />

The default value is True.<br />

trim(a, limits=None, inclusive=(True, True), relative=False, axis=None)<br />

Trims an array by masking the data outside some given limits. Returns a masked version of the input array.<br />

Parameters<br />

a : sequence<br />

Input array<br />

limits : {None, tuple} optional<br />

If relative == False, tuple (lower limit, upper limit) in absolute values. Values of<br />

the input array lower (greater) than the lower (upper) limit are masked. If relative<br />

== True, tuple (lower percentage, upper percentage) to cut on each side of the array,<br />

with respect to the number of unmasked data. Noting n the number of unmasked<br />

data before trimming, the (n*limits[0])th smallest data and the (n*limits[1])th largest<br />

data are masked, and the total number of unmasked data after trimming is n*(1.sum(limits))<br />

In each case, the value of one limit can be set to None to indicate an<br />

open interval. If limits is None, no trimming is performed<br />

inclusive : {(True, True) tuple} optional<br />

688 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!