Re: [Numpy-discussion] Behavior of np.random.uniform

2016-01-20 Thread Peter Creasey
>> I would also point out that requiring open vs closed intervals (in >> doubles) is already an extremely specialised use case. In terms of >> *sampling the reals*, there is no difference between the intervals >> (a,b) and [a,b], because the endpoints have measure 0, and even with >>

[Numpy-discussion] PR #7083: ENH: Added 'doane' and 'sqrt' estimators to np.histogram

2016-01-20 Thread Joseph Fox-Rabinovitz
Please let me know if there is anything wrong or missing. I have added a couple of estimators that I find useful sometimes. -Joe ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Behavior of np.random.uniform

2016-01-20 Thread Jaime Fernández del Río
There doesn't seem to be much of a consensus on the way to go, so leaving things as they are and have been seems the wisest choice for now, thanks for all the feedback. I will work with Greg on documenting the status quo properly. We probably want to follow the lead of the stdlib's random.uniform

Re: [Numpy-discussion] PR #7083: ENH: Added 'doane' and 'sqrt' estimators to np.histogram

2016-01-20 Thread Jaime Fernández del Río
The tests are not passing, seems like you are taking the sqrt of a negative number, may want to check the inputs and raise a more informative error (and add a test for it). Jaime On Thu, Jan 21, 2016 at 7:51 AM, Joseph Fox-Rabinovitz < jfoxrabinov...@gmail.com> wrote: > Please let me know if

Re: [Numpy-discussion] What does -0.0 means?

2016-01-20 Thread Arnaldo Russo
hahaha! Thanks --- Arnaldo D'Amaral Pereira Granja Russo Instituto Ambiental Boto Flipper institutobotoflipper .org 2016-01-20 14:45 GMT-02:00 Jaidev Deshpande : > Hi Arnaldo, > On 20 Jan 2016 21:56, "Arnaldo Russo" wrote: > > > > Hi all, >

[Numpy-discussion] 1.11.0 release notes.

2016-01-20 Thread Charles R Harris
Hi All, I've put up a PR with revised 1.11.0 release notes at https://github.com/numpy/numpy/pull/7073. I would appreciate it if anyone involved in the 1.11 release would take a look and note anything missing that they think should be included or things that are misrepresented. Chuck

[Numpy-discussion] What does -0.0 means?

2016-01-20 Thread Arnaldo Russo
Hi all, After fitting a curve, the output returns the initial value as *-0.0*. Why not a simple 0.0? What is this difference? Sorry for the stupid question, but why exist a negative zero? Cheers, Arnaldo. --- Arnaldo D'Amaral Pereira Granja Russo Instituto Ambiental Boto Flipper

Re: [Numpy-discussion] What does -0.0 means?

2016-01-20 Thread Jaidev Deshpande
Hi Arnaldo, On 20 Jan 2016 21:56, "Arnaldo Russo" wrote: > > Hi all, > > After fitting a curve, the output returns the initial value as -0.0. Why not a simple 0.0? > What is this difference? > Sorry for the stupid question, but why exist a negative zero? Haha, that used

Re: [Numpy-discussion] 1.11.0 release notes.

2016-01-20 Thread Travis Oliphant
Impressive work!Thank you for all the hard work that went in to these improvements and releases. -Travis On Wed, Jan 20, 2016 at 12:32 PM, Charles R Harris < charlesr.har...@gmail.com> wrote: > Hi All, > > I've put up a PR with revised 1.11.0 release notes at >

Re: [Numpy-discussion] Behavior of np.random.uniform

2016-01-20 Thread Charles R Harris
On Wed, Jan 20, 2016 at 11:57 AM, Peter Creasey < p.e.creasey...@googlemail.com> wrote: > +1 for the deprecation warning for low>high, I think the cases where > that is called are more likely to be unintentional rather than someone > trying to use uniform(closed_end, open_end) and you might help

Re: [Numpy-discussion] Behavior of np.random.uniform

2016-01-20 Thread Peter Creasey
+1 for the deprecation warning for low>high, I think the cases where that is called are more likely to be unintentional rather than someone trying to use uniform(closed_end, open_end) and you might help users find bugs - i.e. the idioms of ‘explicit is better than implicit’ and ‘fail early and