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.

Notes<br />

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

The geometric average is computed over a single dimension of the input array, axis=0 by default, or all values<br />

in the array if axis=None. float64 intermediate and return values are used for integer inputs.<br />

Use masked arrays to ignore any non-finite values in the input or that arise in the calculations such as Not a<br />

Number and infinity because masked arrays automatically mask any non-finite values.<br />

hmean(a, axis=0, dtype=None)<br />

Calculates the harmonic mean along the specified axis.<br />

That is: n / (1/x1 + 1/x2 + ... + 1/xn)<br />

See Also:<br />

Parameters<br />

a : array_like<br />

Input array, masked array or object that can be converted to an array.<br />

axis : int, optional, default axis=0<br />

Axis along which the harmonic mean is computed.<br />

dtype : dtype, optional<br />

Type of the returned array and of the accumulator in which the elements are summed.<br />

If dtype is not specified, it defaults to the dtype of a, unless a has an integer dtype<br />

with a precision less than that of the default platform integer. In that case, the default<br />

platform integer is used.<br />

Returns<br />

hmean : ndarray, see dtype parameter above<br />

numpy.mean<br />

Arithmetic average<br />

numpy.average<br />

Weighted average<br />

gmean<br />

Geometric mean<br />

Notes<br />

The harmonic mean is computed over a single dimension of the input array, axis=0 by default, or all values in<br />

the array if axis=None. float64 intermediate and return values are used for integer inputs.<br />

Use masked arrays to ignore any non-finite values in the input or that arise in the calculations such as Not a<br />

Number and infinity.<br />

mean(a, axis=0)<br />

Returns the arithmetic mean of m along the given dimension.<br />

That is: (x1 + x2 + .. + xn) / n<br />

Parameters<br />

a : array<br />

axis : int or None<br />

Returns<br />

The arithmetic mean computed over a single dimension of the input array or :<br />

all values in the array if axis=None. The return value will have a floating :<br />

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

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

Saved successfully!

Ooh no, something went wrong!