[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Ronald van Elburg
Mean_var, mean_std and tests are now ready. (https://github.com/soundappraisal/numpy/tree/stdmean-dev-001) Some decisions made during implementation: - the output shape of mean follows the output shape of the variance or the standard deviation. So it responds in the same way to the keepdims fl

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Matti Picus
On 2/6/23 13:09, Ronald van Elburg wrote: Mean_var, mean_std and tests are now ready. (https://github.com/soundappraisal/numpy/tree/stdmean-dev-001) Some decisions made during implementation: - the output shape of mean follows the output shape of the variance or the standard deviation. So

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Matti Picus
On 2/6/23 13:41, Matti Picus wrote: On 2/6/23 13:09, Ronald van Elburg wrote: Mean_var, mean_std and tests are now ready. (https://github.com/soundappraisal/numpy/tree/stdmean-dev-001) Some decisions made during implementation:    - the output shape of mean follows the output shape of the v

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Ronald van Elburg
I think I left those aspects of the implementation untouched. But having someone more experienced look at it is probably a good idea. ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Ronald van Elburg
Aha, the unnecessary copy mentioned in the https://dbs.ifi.uni-heidelberg.de/files/Team/eschubert/publications/SSDBM18-covariance-authorcopy.pdf. paper is a copy of the input. Here it is about discarding a valuable output (the mean) and then calculating that result separately. Not throwing the

[Numpy-discussion] Issue 22266(https://github.com/numpy/numpy/issues/22266)

2023-06-02 Thread Mohit Kumar
Dear mentors, I have been trying to solve this issue(for round_). I found that this(round_) is not included into the latest documentation of version 1.24 and it was last time introduced into version 1.13 documentation. As I can see round_ is working for 1.24.2 and it will be removed in version

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Jerome Kieffer
On Fri, 02 Jun 2023 11:47:14 - "Ronald van Elburg" wrote: > Aha, the unnecessary copy mentioned in the > https://dbs.ifi.uni-heidelberg.de/files/Team/eschubert/publications/SSDBM18-covariance-authorcopy.pdf. > paper is a copy of the input. Here it is about discarding a valuable output > (

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Ralf Gommers
On Fri, Jun 2, 2023 at 1:51 PM Ronald van Elburg wrote: > Aha, the unnecessary copy mentioned in the > https://dbs.ifi.uni-heidelberg.de/files/Team/eschubert/publications/SSDBM18-covariance-authorcopy.pdf. > paper is a copy of the input. Here it is about discarding a valuable output > (the mean)

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Ronald van Elburg
I am agnostic to the order of those changes. Also this is my first attempt to contribute to numpy, so I am not aware of all the ongoing discussions. I'll try to read the issue you just mentioned. But in the code I rewrote replacing _mean_var with a faster version would benefit var, std, mean_va

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-02 Thread Ronald van Elburg
I had a closer look at the paper. When I have more brain and time I may check the mathematics. The focus is however more on streaming data, which is an application with completely different demands. I think that here we can not afford to sample the data, which is an option in streaming database