Skip to content

ENH: Added 'doane' and 'sqrt' estimators to np.histogram in numpy.function_base #7083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed

Conversation

madphysicist
Copy link
Contributor

These are a couple of estimators I find myself using sometimes. They do not break existing code and tests show that they work sensibly.

gfyoung and others added 3 commits January 20, 2016 11:47
Refactored methods that broadcast arguments
together by finding additional common ground
between code in the if...else branches that
involved a size parameter being passed in.
Doane's Estimator
Improved version of Sturges' formula which works better for non-normal
data.
See http://stats.stackexchange.com/questions/55134/doanes-formula-for-histogram-binning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather refer to a wikipedia page or so. Turns out https://en.wikipedia.org/wiki/Histogram does describe it and give the original reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I would normally agree with you, the author of the better researched Stack Exchange answer is also the author of the relevant section on Wikipedia. I referenced the Stack Exchange article because it is not only the original source, but also contains a lot more information.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a link to Wikipedia in the overall function documentation, since it is relevant to all the estimators.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea.

@jaimefrio
Copy link
Member

If you look at the commits you are trying to merge, you will notice there is something very wrong. You are trying to merge your changes from your master branch, but should be doing so from a feature branch. You can find detailed instructions here.

Not sure if we can salvage this, or if you are better off starting from scratch with a new PR...

@madphysicist
Copy link
Contributor Author

That is my mistake. I had thought that I read the docs carefully, but I did not notice that http://docs.scipy.org/doc/numpy-1.10.1/dev/gitwash/development_workflow.html#pushing-changes-to-the-main-repo is only for developers with write access. My work is actually in a feature branch. I will go back and create a new PR.

@madphysicist
Copy link
Contributor Author

I went ahead and replaced this request with #7090. All changes have been squashed into a feature branch there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants