Skip to content
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

[dut_alignment] Binning in residuals vs. position hists #60

Open
DavidLP opened this issue Feb 16, 2017 · 5 comments
Open

[dut_alignment] Binning in residuals vs. position hists #60

DavidLP opened this issue Feb 16, 2017 · 5 comments

Comments

@DavidLP
Copy link
Collaborator

DavidLP commented Feb 16, 2017

The binning shows very strong ´Moiré effects and should be optimized:
grafik

@laborleben
Copy link
Collaborator

There is the possibility to adjust the binning:

# smaller devices needs None, otherwise npixels_per_bin=5 and nbins_per_pixel=1 might improve the first step
.
The coarse binning helps to improve the fit. The effect the plot is showing is by far not the worst.

The effect is probably both, a cobination of a binning effect (plotting) and a pixelized telescope and DUT.

@DavidLP
Copy link
Collaborator Author

DavidLP commented Feb 17, 2017

If the fit result depends on the binnig then this is not correct and missuses the bin width as a frequency filter. Also I do not want to optimize bin width by hand for each device. Choosing the "best" bin size is a science itself (paper) and I was hoping scipy.binned_stat does that, but apparently only np.histogram has fancy algos for autobinning,

@laborleben
Copy link
Collaborator

We use "auto" binning if no binning value is given. The "auto" binning is part of numpy 1.11.

@DavidLP
Copy link
Collaborator Author

DavidLP commented Feb 17, 2017

And auto uses Freedman Diaconis Estimator and sturges auto bin method , where I guess somebody thought about that.

@DavidLP DavidLP closed this as completed Feb 17, 2017
@DavidLP
Copy link
Collaborator Author

DavidLP commented Feb 17, 2017

Sorry Firefox missclicked

@DavidLP DavidLP reopened this Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants