summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-09-30 21:05:36 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-09-30 21:52:11 +0200
commit6e226461752ec092bd71300b153aa319d783b32f (patch)
treeea35b6e58a79aaced3a341192f29798e8d15ea47 /doc
parent80b9c205743f395e9cb87b6e47cf95b8cf156122 (diff)
downloadnumpy-6e226461752ec092bd71300b153aa319d783b32f.tar.gz
DOC: update percentile release notes and add np.array improvement
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.9.0-notes.rst28
1 files changed, 27 insertions, 1 deletions
diff --git a/doc/release/1.9.0-notes.rst b/doc/release/1.9.0-notes.rst
index 0180c86cc..c9cbf42c1 100644
--- a/doc/release/1.9.0-notes.rst
+++ b/doc/release/1.9.0-notes.rst
@@ -20,12 +20,26 @@ Future Changes
Compatibility notes
===================
-numpy.percentile returns an array instead of a list.
+Percentile output changes
+~~~~~~~~~~~~~~~~~~~~~~~~~
+If given more than one percentile to compute numpy.percentile returns an array
+instead of a list. A single percentile still returns a scalar.
+The array is equivalent to converting the the list returned in older versions
+to an array via `np.array`.
+
+If the `overwrite_input` option is used the input is only partially instead of
+fully sorted.
New Features
============
+Percentile supports more interpolation options
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+`np.percentile` now has the interpolation keyword argument to specify in which
+way points should be interpolated if the percentiles fall between two values.
+See the documentation for the available options.
+
Ufunc and Dot Overrides
~~~~~~~~~~~~~~~~~~~~~~~
@@ -42,6 +56,18 @@ can now be specificed using the dtype parameter.
Improvements
============
+Percentile implemented in terms of `np.partition`
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+`np.percentile` has been implemented interms of `np.partition` which only
+partially sorts the data via a selection algorithm. This improves the time
+complexcity from `O(nlog(n))` to `O(n)`.
+
+Performance improvement for `np.array`
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+The performance of converting lists containing arrays to arrays using
+`np.array` has been improved. It is now equivalent in speed to
+`np.vstack(list)`.
+
Changes
=======