summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov>2016-01-27 10:21:46 -0500
committerJoseph Fox-Rabinovitz <jfoxrabinovitz@gmail.com>2016-01-31 20:04:01 -0500
commit9ec694b69a231a8de43032711c657d253edbed9d (patch)
tree2b36d09515f869165a17bdb41996ed4b98c0b261 /doc
parentcc2b0495118e4855acfeaea3253abf449f3e91dd (diff)
downloadnumpy-9ec694b69a231a8de43032711c657d253edbed9d.tar.gz
BUG: Fixed 'midpoint' interpolation of np.percentile in odd cases.
'midpoint' must return the same as 'higher' and 'lower' when the two are the same, not 'lower' + 0.5 as it was doing.
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.12.0-notes.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/release/1.12.0-notes.rst b/doc/release/1.12.0-notes.rst
index ee4e2d24a..d6089c311 100644
--- a/doc/release/1.12.0-notes.rst
+++ b/doc/release/1.12.0-notes.rst
@@ -32,10 +32,15 @@ default order for arrays that are now both.
``MaskedArray`` takes view of data **and** mask when slicing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
XXX
+``np.percentile`` 'midpoint' interpolation method fixed for exact indices
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+'midpoint' interpolator now gives the same result as 'lower' and 'higher' when
+the two coincide. Previous behavior of 'lower' + 0.5 is fixed.
+
+
DeprecationWarning to error
~~~~~~~~~~~~~~~~~~~~~~~~~~~