Add notes to doc about fitting integer parameters (Trac #882) #968
Labels
Documentation
Concerns documentation
Enhancement
Feature requests and/or general improvements
Major
Big change in the code or important change in behaviour
The following notes were in the multilayer vesicle model in IGOR:
The value returned by the fitting routine for the number of water/shell pairs will be a floating point number. The physical reality must be an integer number of layers. In the model function, the value is truncated so that only the integer portion is used. That is 5.95 "pairs" is actually calculating the scattering for 5 pairs. ''[sasmodels rounds to 6 rather than truncates to 5]''
and:
This is a highly non-linear model function, complicated by the fact that the number of water/shell pairs must physically be an integer value, although the optimization treats it as a floating point value. For the best possible experience:
Some of these details should be added to the multilayer vesicle docs, but others are more general and will apply to any system with integer parameters. See ticket http://trac.sasview.org/ticket/843 and the pull request [https://github.com/SasView/sasmodels/pull/27 27] for context.
Also mentioned:
The resolution smeared version gives the most appropriate view of the model. Note that the resolution smearing calculation uses 76 Gauss quadrature points to properly smear the model since the function is HIGHLY oscillatory, especially around the q-values that correspond to the repeat distance of the layers. This can make the calculations rather slow.
Better control of resolution is ticketed in SasView/sasmodels#263 and #839. Adaptive integration is recommended in SasView/sasmodels#535. Hints for when the user should turn on oversampling in q for the resolution calculation should be documented (i.e., when the function is oscillatory or the data are sparse). Note that polydispersity reduces oscillation, which means the resolution calculation is cheaper.
Migrated from http://trac.sasview.org/ticket/882
The text was updated successfully, but these errors were encountered: