ADR: SampleModel, ResolutionModel, BackgroundModel
#109
henrikjacobsenfys
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
General
This describes the implementation of
SampleModel,ResolutionModelandBackgroundModel, which all follow the same pattern. They all inherit fromModelBase.The implementation has been discussed in easyscience/dynamics#4, where it was decided to create `ComponentCollection' #108
SampleModeldescribes the scattering from a sample at multipleQ. At eachQ, the model generates aComponentCollection(#108 ) with appropriateModelComponents.#ModelBase
Provides common functionality for all the models described above.
Input:
Q. WIll be made clearer (Make the distinction between templates and components in sample models clearer #101 )Analysisclass, which takes theQfrom the experiment.It has the following methods:
ComponentCollectionat a particular Q indexBackgroundModel
Currently is identical to the
ModelBase. It may in the future be expanded with various options specific to background.ResolutionModel
Currently is identical to the
ModelBase, except it does not allowDeltaFunctionandPolynomialcomponents, as these cannot form a meaningful model of a resolution.Some care must be taken in not overwriting the
ResolutionModel(#101 )SampleModel
Is extended with the following:
ComponentCollections generated by theDiffusionModels will be appended to the components generated by the component templatesInstrumentModel
Describes everything that has to do with the instrument. It contains:
Qthat by default is free to be fitted. Offsets the intensity of the entireComponentCollectionto account for small instrument misalignmentBeta Was this translation helpful? Give feedback.
All reactions