15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Numerous efficiency improvements to format conversions and sparse matrix arithmetic have been made. Finally, this<br />

release contains numerous bugfixes.<br />

2.1.7 Statistics package<br />

Statistical functions for masked arrays have been added, and are accessible through <strong>scipy</strong>.stats.mstats. The<br />

functions are similar to their counterparts in <strong>scipy</strong>.stats but they have not yet been verified for identical interfaces<br />

and algorithms.<br />

Several bugs were fixed for statistical functions, of those, kstest and percentileofscore gained new keyword<br />

arguments.<br />

Added deprecation warning for mean, median, var, std, cov, and corrcoef. These functions should<br />

be replaced by their numpy counterparts. Note, however, that some of the default options differ between the<br />

<strong>scipy</strong>.stats and numpy versions of these functions.<br />

Numerous bug fixes to stats.distributions: all generic methods now work correctly, several methods in<br />

individual distributions were corrected. However, a few issues remain with higher moments (skew, kurtosis)<br />

and entropy. The maximum likelihood estimator, fit, does not work out-of-the-box for some distributions - in<br />

some cases, starting values have to be carefully chosen, in other cases, the generic implementation of the maximum<br />

likelihood method might not be the numerically appropriate estimation method.<br />

We expect more bugfixes, increases in numerical precision and enhancements in the next release of <strong>scipy</strong>.<br />

2.1.8 Reworking of IO package<br />

The IO code in both NumPy and SciPy is being extensively reworked. NumPy will be where basic code for reading<br />

and writing NumPy arrays is located, while SciPy will house file readers and writers for various data formats (data,<br />

audio, video, images, matlab, etc.).<br />

Several functions in <strong>scipy</strong>.io have been deprecated and will be removed in the 0.8.0 release including<br />

npfile, save, load, create_module, create_shelf, objload, objsave, fopen, read_array,<br />

write_array, fread, fwrite, bswap, packbits, unpackbits, and convert_objectarray. Some<br />

of these functions have been replaced by NumPy’s raw reading and writing capabilities, memory-mapping capabilities,<br />

or array methods. Others have been moved from SciPy to NumPy, since basic array reading and writing capability<br />

is now handled by NumPy.<br />

The Matlab (TM) file readers/writers have a number of improvements:<br />

• default version 5<br />

• v5 writers for structures, cell arrays, and objects<br />

• v5 readers/writers for function handles and 64-bit integers<br />

• new struct_as_record keyword argument to loadmat, which loads struct arrays in matlab as record arrays in<br />

numpy<br />

• string arrays have dtype=’U...’ instead of dtype=object<br />

• loadmat no longer squeezes singleton dimensions, i.e. squeeze_me=False by default<br />

2.1.9 New Hierarchical Clustering module<br />

This module adds new hierarchical clustering functionality to the <strong>scipy</strong>.cluster package. The function interfaces<br />

are similar to the functions provided MATLAB(TM)’s Statistics Toolbox to help facilitate easier migration to<br />

126 Chapter 2. Release Notes

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

Saved successfully!

Ooh no, something went wrong!