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 />

hmean<br />

Harmonic mean<br />

Notes<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)<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 />

kendalltau(x, y, use_ties=True, use_missing=False)<br />

Computes Kendall’s rank correlation tau on two variables x and y.<br />

Parameters<br />

xdata: sequence :<br />

First data list (for example, time).<br />

ydata: sequence :<br />

674 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!