-
Notifications
You must be signed in to change notification settings - Fork 9
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
Incorrect results with rebinning #9
Comments
I can confirm this. I'll have a look into it. |
It looks like the trigger for this is the I'm not sure when I'll have time to fix this. Here is a script to repeat this calculation:
|
Thank you for your feedback. So you mean there is an error in the code? |
There's a bug in the code. I have a fix for when there's no uncertainty,
but still working on the fix for with uncertainty.
…On Tue., 18 Jun. 2019, 19:37 buroojg, ***@***.***> wrote:
Thank you for your feedback. So you mean there is an error in the code?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AAFLTVVA7MWMPOJFRVLO7UTP3CUGJA5CNFSM4HXZQ6DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5ZW6I#issuecomment-503028601>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFLTVR776YQYIKQH6G4WF3P3CUGJANCNFSM4HXZQ6DA>
.
|
Alright, thanks a lot. Would it be possible for you to share the code for when there's no uncertainty in the meantime? |
So is this fixed? |
Yes, it is. |
So why is it still Open? :) |
I think was fixed in #10 |
Thanks guys for confirming that this is fixed! Closing the issue now... |
Hi there,
First of all thank you for the package. I am trying to rebin but I am getting incorroct results:
So my data looks like:
x_old is [1.5 2.5 3.5 4.5 5.5 6.5]
y_old is [10 10 10 10 10]
x_new is [1.7 2.27332857 2.84665714 3.41998571 3.99331429 4.56664286
5.13997143 5.7133]
The y_new I get on using your script is:
[ 55.73328571 5.73328571 5.73328571 5.73328571 5.73328571 5.73328571 5.73328571]
There is clearly some problem with this result especially with the first bin result. Could you have some hints on what could be going wrong?
I am using the assumption of 'piecewise_constant' for bins.
Thank you so much!
Burooj
The text was updated successfully, but these errors were encountered: