-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add ability to construct kernels and convolve with data #10
Comments
Would it also make sense to include the information in |
Yes, this is the point! In fact, now that you mention it, if we use a named tuple instead of a tuple, we should be able to convey not only what is being returned, e.g. However, it might also be nice to go all the way and connect this bottommost layer of resolution functions to the next layer up, which calculates the function. If the
but how well that works would probably depend on the topmost layer and how it could be connected to that. Lastly, a maybe not-so-good idea that just occurred to me is that instead of using |
Probably better to have the output ("resolution profile", perhaps?) contain an array of values than to create an array of these objects. I think we need to brainstorm a range of cases, including arbitrary tabulated profiles (where they are not well-described by a common distribution function). Indeed, it could be nice if the base class promises to always provide the option of a tabulated output; then this is a useful fallback if the upstream code doesn't know what a Lorentzian is, say. |
Plan for this - scrap Change
|
Meeting flipchart scribbles covering some examples of this: Maybe the key example to highlight is that while the default implementation of While the flipchart shows cases of |
While I was looking into #24, a question arose: should we accept both an array and a float for the independent variable array(s)? In the present implementation, the
|
The input and output of models are specified using the
InstrumentModel.input
andInstrumentModel.output
class variables, but for now these are only integers signifying the number of input/output values. This should be made more specific, since e.g. models can model both E only and q only, both of which would have only one input argument. I believe the previous consensus on improving this was to use a tuple of strings instead.The text was updated successfully, but these errors were encountered: