-
Notifications
You must be signed in to change notification settings - Fork 3
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
Extend existing grid #231
base: master
Are you sure you want to change the base?
Extend existing grid #231
Conversation
@cschwan this is just the raw proposal, just to give you an idea of what I had in mind. I'm not fully satisfied of the result, mainly because of (There are a couple of other things that I don't like: the further |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks OK, except the bins
parameter, which is lacking bin limits. Without these the internal bin limits don't match the bin-dimension of the subgrids array and things will go awry.
I had a try with
Moreover, check that the shape increase for bins is correctly computed. Also tell me if you find the parameters names simple, but coherent (so for bins I'm really in doubt between |
QED: I broke something... |
Did you post that on the wrong page? If not, I don't understand. |
You got it wrong, maybe it would have been clearer spelled Q.E.D. (i.e. quod erat demonstrandum). In Italian the initialism is different, but in English should be customary to use the Latin version. |
I see and that I understand, but I was thinking of quantum electrodynamics 😄. |
I know xD |
It seems like the reason why I failed is that I was not familiar enough with In any case, the code is terrible, but before refactoring I'd like:
|
I'm not sure whether you can easily extend in the bin dimension. For 1-dimensional distributions you may want to extend the bins not only to the right, but maybe also to the left. In the general case you also have to make sure to take care of the |
For the time being, the current function would be enough for our goals, so I would not go much beyond the current state (I'm still a bit unsatisfied about bins treatment, but not enough to change anything). If you agree to that, @cschwan, I would:
|
Essentially split part of the
Grid::merge
function, for direct usage.